Class GenStlFuncHost
A class that hosts a function to generate STL geometry at a caller-chosen resolution.
public class GenStlFuncHost : IGetStl, IGenStl
- Inheritance
-
GenStlFuncHost
- Implements
- Inherited Members
- Extension Methods
Constructors
GenStlFuncHost()
Default constructor.
public GenStlFuncHost()
GenStlFuncHost(Func<IPolarResolution2d, Stl>)
Constructor with STL generator function.
public GenStlFuncHost(Func<IPolarResolution2d, Stl> genStlFunc)
Parameters
genStlFuncFunc<IPolarResolution2d, Stl>Function that generates an STL object for a given resolution
Properties
GenStlFunc
Gets or sets the function that generates the STL object. The resolution argument may be null; the generator then applies its own default.
public Func<IPolarResolution2d, Stl> GenStlFunc { get; set; }
Property Value
Methods
GenStl(IPolarResolution2d)
Generates a new STL.
public Stl GenStl(IPolarResolution2d resolution)
Parameters
resolutionIPolarResolution2dPolar resolution
Returns
- Stl
A newly created STL.
GetStl()
Gets the STL geometry at the generator's default resolution.
public Stl GetStl()
Returns
- Stl
The generated STL object