Table of Contents

Class Segment3dDispUtil

Namespace
Hi.Disp
Assembly
HiDisp.dll

Utilities for converting geometry segments to renderable drawings.

public static class Segment3dDispUtil
Inheritance
Segment3dDispUtil
Inherited Members

Methods

ToDrawing(IEnumerable<Segment3d>)

Converts a sequence of 3D segments to a line drawing. A segment without both endpoints (HasBothEnds) is skipped, never drawn as a line to the origin. The resulting drawing uses GL_LINES with stamp V.

public static Drawing ToDrawing(this IEnumerable<Segment3d> segments)

Parameters

segments IEnumerable<Segment3d>

Input segments to convert.

Returns

Drawing

A drawing that renders the provided segments.

ToDrawing(IEnumerable<Segment3d>, bool)

Converts a sequence of 3D segments to a line drawing, as ToDrawing(IEnumerable<Segment3d>) does; a rebuildable one when rebuildable is true (IsRebuildable), which its owner makes again from the segments it keeps once the drawing went stale (IsStale).

public static Drawing ToDrawing(this IEnumerable<Segment3d> segments, bool rebuildable)

Parameters

segments IEnumerable<Segment3d>

Input segments to convert.

rebuildable bool

whether to make the drawing rebuildable

Returns

Drawing

A drawing that renders the provided segments.