Class Sweptable
Sweptable geometry.
public class Sweptable : IGetSweptable, IVolumeRemover, IExpandToBox3d, IDisposable
- Inheritance
-
Sweptable
- Implements
- Inherited Members
- Extension Methods
Constructors
Sweptable(Stl, double)
Ctor.
public Sweptable(Stl stl, double nativeTopoStlFractionTolerance)
Parameters
Properties
NativeStl
Get geometry.
public NativeStl NativeStl { get; }
Property Value
- NativeStl
geoemtry
NativeTopoStl3d
Get geometry.
public NativeTopoStl3d NativeTopoStl3d { get; }
Property Value
- NativeTopoStl3d
geoemtry
NativeTopoStl3wfr
Gets the native topology STL with fraction tolerance.
public NativeTopoStl3wfr NativeTopoStl3wfr { get; }
Property Value
Stl
Gets the STL geometry.
public Stl Stl { get; }
Property Value
Methods
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
GetSweptable(double)
Get Sweptable.
public Sweptable GetSweptable(double fractionTolerance)
Parameters
fractionTolerancedoubleThe fraction tolerance for the sweptable.
Returns
- Sweptable
Sweptable
Sweep(mat4d_t, mat4d_t)
Get swept geometry.
public CachedTris Sweep(mat4d_t pre, mat4d_t cur)
Parameters
Returns
- CachedTris
Swept geometry
Sweep(mat4d_t, double)
Sweep. only available for the geometry that does not contains near point or points on the same line on the same plane.
public CachedTris Sweep(mat4d_t cur, double fractionTolerance)
Parameters
Returns
- CachedTris
Swept geometry as cached triangles