HPS::Parasolid::Component
- class HPS.Parasolid.Component : public HPS.Component
The Component class is a smart pointer. It represents a variety of Parasolid components. The primary purpose of this class is simply to provide access to the underlying ParasolidEntity object for use by Parasolid library functions.
Public Functions
- bool AddTransform (HPS.MatrixKit in_transform)
Appends a transform to the underlying Parasolid data associated with this component. Only components of type ParasolidAssembly, ParasolidInstance and ParasolidTopoBody can have transforms applied to them. Additionally, only transformations which are rigid motions can be applied. Calling AddTransform with a transform which is not a rigid motion, such as a shear, will cause the function to fail.
- Param in_transform
The transform to apply to this component.
- Return
true if transform was applied correctly, false otherwise.
- Component ()
The default constructor creates an uninitialized Parasolid.Component object. The Type() function will return Type.None.
- Component (HPS.Component in_that)
This constructor creates an Parasolid.Component object that shares the underlying smart-pointer of the source Component. The copy will only be successful if the source component is really an upcast of a Parasolid.Component object. Otherwise the copy will fail and the resulting Parasolid.Component will be invalid.
- Param in_that
The source Component to copy.
- Component (HPS.Parasolid.Component in_that)
This constructor creates an Parasolid.Component object that shares the underlying smart-pointer of the source Component. The copy will only be successful if the source component is really an upcast of a Parasolid.Component object. Otherwise the copy will fail and the resulting Parasolid.Component will be invalid.
- Param in_that
The source Component to copy.
- override void Dispose ()
- int GetParasolidEntity ()
Gets the ParasolidEntity object corresponding to this ParasolidComponent.
- Return
The ParasolidEntity object corresponding to this ParasolidComponent.
- override HPS.Type ObjectType ()
This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).
- Return
The declared type of the object in question, which may differ from the true, underlying type.
- bool SetTransform (HPS.MatrixKit in_transform)
Applies a transform to the underlying Parasolid data associated with this component, replacing any transform currently set on it. Only components of type ParasolidAssembly, ParasolidInstance and ParasolidTopoBody can have transforms applied to them. Additionally, only transformations which are rigid motions can be applied. Calling SetTransform with a transform which is not a rigid motion, such as a shear, will cause the function to fail.
- Param in_transform
The transform to apply to this component.
- Return
true if transform was applied correctly, false otherwise.
- void Tessellate (HPS.Parasolid.FacetTessellationKit in_facet_options, HPS.Parasolid.LineTessellationKit in_line_options)
Re-tessellate the given Component with the provided options. Tessellation can only occur at the body, instance or assembly level, so calling this function on Component objects below that level will have no effect.