Class TopoStl3HfrFlatDisplayee
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
sourceTopoStl3HfrThe source topological STL.
Properties
Source
The source topological STL.
public TopoStl3Hfr Source { get; }
Property Value
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
bindBind
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
disposingbool
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
dstbox3d_tDestination box, expanded in place