HPS::Parasolid::CADModel

class HPS.Parasolid.CADModel : public HPS.CADModel

The CADModel class is a smart pointer. It is an abstract concept symbolizing the root of the Parasolid import. It is not related to any Parasolid object.

Public Functions

HPS.Component AddEntity (int in_entity_to_add, HPS.Parasolid.FacetTessellationKit in_facet_tessellation, HPS.Parasolid.LineTessellationKit in_line_tessellation)

Renders the entity specified, according to the tessellation options provided. Only entities of type PK_CLASS_assembly and PK_CLASS_body can be used with this function.

Param in_entity_to_add

The Parasolid entity to import into HPS.

Param in_facet_tessellation

The facet tessellation parameters used during import.

Param in_line_tessellation

The line tessellation parameters used during import.

Return

The component created as part of the import of the provided entity.

HPS.Component AddEntity (int in_entity_to_add, HPS.Parasolid.FacetTessellationKit in_facet_tessellation, HPS.Parasolid.LineTessellationKit in_line_tessellation, HPS.Component in_owner)

Renders the entity specified, according to the tessellation options provided. Only entities of type PK_CLASS_assembly and PK_CLASS_body can be used with this function.

Param in_entity_to_add

The Parasolid entity to import into HPS.

Param in_facet_tessellation

The facet tessellation parameters used during import.

Param in_line_tessellation

The line tessellation parameters used during import.

Param in_owner

The component owning which will own the imported entity

Return

The component created as part of the import of the provided entity.

CADModel ()

The default constructor creates an uninitialized CADModel object. The Type() function will return Type.None.

CADModel (HPS.CADModel in_that)

This constructor creates a Parasolid.CADModel object that shares the underlying smart-pointer of the source HPS.CADModel. The copy will only be successful if the source component is really an upcast of a Parasolid.CADModel object. Otherwise the copy will fail and the resulting Parasolid.CADModel will be invalid.

Param in_that

The source HPS.CADModel to copy.

CADModel (HPS.Component in_that)

This constructor creates a CADModel 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.CADModel object. Otherwise the copy will fail and the resulting Parasolid.CADModel will be invalid.

Param in_that

The source Component to copy.

CADModel (HPS.Parasolid.CADModel in_that)

This constructor creates a Parasolid.CADModel object that shares the underlying smart-pointer of the source HPS.CADModel. The copy will only be successful if the source component is really an upcast of a Parasolid.CADModel object. Otherwise the copy will fail and the resulting Parasolid.CADModel will be invalid.

Param in_that

The source HPS.CADModel to copy.

override void Dispose ()
HPS.Component GetComponentFromEntity (int in_entity)

Returns the Component associated with the provided entity.

Param in_entity

The Parasolid entity for which to return a Component.

Return

The component associated with the passed in entity, or an empty component if no component is associated with in_entity.

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.

void Tessellate (HPS.Parasolid.FacetTessellationKit in_facet_options, HPS.Parasolid.LineTessellationKit in_line_options)

Re-tessellate the given CADModel with the provided options.

Param in_facet_options

The facet tessellation options to use to generate the new tessellation for this CADModel.

Param in_line_options

The line tessellation options to use to generate the new tessellation for this CADModel.