Table of Contents

Class TopoStl3HfrFlatDisplayee

Namespace
Hi.Geom.Topo
Assembly
HiDisp.dll

Flat-shaded displayee for TopoStl3Hfr. Renders flat triangle faces (one normal per triangle) and all unique edge lines. Corresponds to C++ topo_stl3::_flatDraw + all-lines draw.

public class TopoStl3HfrFlatDisplayee : IDisplayee, IExpandToBox3d, IDisposable
Inheritance
TopoStl3HfrFlatDisplayee
Implements
Inherited Members
Extension Methods

Constructors

TopoStl3HfrFlatDisplayee(TopoStl3Hfr)

Initializes a new flat displayee wrapping the given TopoStl3Hfr.

public TopoStl3HfrFlatDisplayee(TopoStl3Hfr source)

Parameters

source TopoStl3Hfr

The source topological STL.

Properties

Source

The source topological STL.

public TopoStl3Hfr Source { get; }

Property Value

TopoStl3Hfr

Methods

ClearCache()

Invalidates all cached drawings. Call this after modifying the source topology.

public void ClearCache()

Display(Bind)

Displays the flat-shaded topological STL: all edges in black + flat-shaded triangle faces.

public void Display(Bind bind)

Parameters

bind Bind

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

ExpandToBox3d(ref box3d_t)

Expands the destination box. This function is usually used to compute the bounding box of elements. box3d_t is a value type, so the destination is passed by reference (the C++ expand_to_box3d(box3&) shape); an implementation writes dst = dst.Expanded(...) or forwards ref dst to its parts.

public void ExpandToBox3d(ref box3d_t dst)

Parameters

dst box3d_t

Destination box, expanded in place