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

Component AddEntity(ParasolidEntity in_entity_to_add, FacetTessellationKit const &in_facet_tessellation, LineTessellationKit const &in_line_tessellation, Component const &in_owner = Component())

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.

Parameters
  • in_entity_to_add – The Parasolid entity to import into HPS.

  • in_facet_tessellation – The facet tessellation parameters used during import.

  • in_line_tessellation – The line tessellation parameters used during import.

  • in_owner – The component owning which will own the imported entity

Returns

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(Component const &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.

Parameters

in_that – The source Component to copy.

CADModel(HPS::CADModel const &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.

Parameters

in_that – The source HPS::CADModel to copy.

CADModel(Parasolid::CADModel &&in_that)

The move constructor creates a Parasolid::CADModel by transferring the underlying object of the rvalue reference to this Parasolid::CADModel.

Parameters

in_that – An rvalue reference to a Parasolid::CADModel to take the underlying object from.

CADModel(Parasolid::CADModel const &in_that)

The copy constructor creates a Parasolid::CADModel object that shares the underlying smart-pointer of the source Parasolid::CADModel.

Parameters

in_that – The source Parasolid::CADModel to copy.

Component GetComponentFromEntity(ParasolidEntity in_entity)

Returns the Component associated with the provided entity.

Parameters

in_entity – The Parasolid entity for which to return a Component.

Returns

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

inline virtual HPS::Type ObjectType() const

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).

Returns

The declared type of the object in question, which may differ from the true, underlying type.

CADModel &operator=(Parasolid::CADModel &&in_that)

The move assignment operator transfers the underlying object of the rvalue reference to this Parasolid::CADModel.

Parameters

in_that – An rvalue reference to a Parasolid::CADModel to take the underlying object from.

Returns

A reference to this Parasolid::CADModel.

void Tessellate(Parasolid::FacetTessellationKit const &in_facet_options, Parasolid::LineTessellationKit const &in_line_options)

Re-tessellate the given CADModel with the provided options.

Parameters
  • in_facet_options – The facet tessellation options to use to generate the new tessellation for this CADModel.

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

virtual ~CADModel()

Public Static Attributes

static const HPS::Type staticType = HPS::Type::ParasolidCADModel