Class GeomCombination
A class that manages multiple STL sources as a single source.
public class GeomCombination : IStlSource, IGetStl, IMakeXmlSource, IGenStl
- Inheritance
-
GeomCombination
- Implements
- Inherited Members
- Extension Methods
Constructors
GeomCombination()
Default constructor that initializes an empty collection of STL sources.
public GeomCombination()
GeomCombination(params IStlSource[])
public GeomCombination(params IStlSource[] stlSources)
Parameters
stlSources
IStlSource[]
GeomCombination(XElement, string, string)
Ctor.
public GeomCombination(XElement src, string baseDirectory, string relFile)
Parameters
Properties
StlSources
Collection of STL sources managed by this instance.
public List<IStlSource> StlSources { get; }
Property Value
XName
Name for XML IO.
public static string XName { get; }
Property Value
Methods
CleanStlCache()
Clears the cached STL data, forcing it to be regenerated on the next request.
public void CleanStlCache()
Duplicate(params object[])
public object Duplicate(params object[] res)
Parameters
res
object[]
Returns
GenStl(IPolarResolution2d)
Generate a new Stl.
public Stl GenStl(IPolarResolution2d resolution)
Parameters
resolution
IPolarResolution2d
Returns
- Stl
newly created Stl
GetStl()
Gets the STL geometry data.
public Stl GetStl()
Returns
- Stl
The STL geometry object
MakeXmlSource(string, string, bool)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)
Parameters
baseDirectory
stringThe base directory for resolving relative paths
relFile
stringThe relative file path for the XML source
exhibitionOnly
boolif true, the extended file creation is suppressed.
Returns
- XElement
An XML element representing the object's state
Remarks
For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied.
The baseDirectory
is typically the folder at the nearest configuration file folder.
Since the folder can be moving with the configuration file.