The FacetTessellationKit class is a user space object. More...
#include <sprk_parasolid.h>
Public Member Functions | |
FacetTessellationKit () | |
The default constructor creates an empty FacetTessellationKit object. More... | |
FacetTessellationKit (FacetTessellationKit const &in_kit) | |
The copy constructor creates a new FacetTessellationKit object that contains the same settings as the source FacetTessellationKit. More... | |
FacetTessellationKit (FacetTessellationKit &&in_that) | |
The move constructor creates an FacetTessellationKit by transferring the underlying impl of the rvalue reference to this FacetTessellationKit thereby avoiding a copy and allocation. More... | |
FacetTessellationKit & | operator= (FacetTessellationKit &&in_that) |
The move assignment operator transfers the underlying impl of the rvalue reference to this FacetTessellationKit thereby avoiding a copy. More... | |
virtual | ~FacetTessellationKit () |
HPS::Type | ObjectType () const |
void | Set (FacetTessellationKit const &in_kit) |
Copies the source FacetTessellationKit into this FacetTessellationKit. More... | |
void | Show (FacetTessellationKit &out_kit) const |
Copies this FacetTessellationKit into the given FacetTessellationKit. More... | |
FacetTessellationKit & | operator= (FacetTessellationKit const &in_kit) |
Copies the source FacetTessellationKit into this FacetTessellationKit. More... | |
bool | Empty () const |
Indicates whether this FacetTessellationKit has any values set on it. More... | |
bool | Equals (FacetTessellationKit const &in_kit) const |
Check if the source FacetTessellationKit is equivalent to this FacetTessellationKit. More... | |
bool | operator== (FacetTessellationKit const &in_kit) const |
Check if the source FacetTessellationKit is equivalent to this FacetTessellationKit. More... | |
bool | operator!= (FacetTessellationKit const &in_kit) const |
Check if the source FacetTessellationKit is not equivalent to this FacetTessellationKit. More... | |
FacetTessellationKit & | SetTessellationLevel (HPS::Parasolid::TessellationLevel in_tessellation_level, double in_chord=-1, double in_angle=-1, bool in_generate_line_tessellation=true) |
Sets facet tessellation level. More... | |
FacetTessellationKit & | SetShapeGeneration (Facet::Shape in_shape) |
Sets constraints on the facet generation. More... | |
FacetTessellationKit & | SetVertexMatching (Facet::Match in_vertex_matching) |
Sets the vertex matching strategy at edges This corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.match. More... | |
FacetTessellationKit & | SetDensity (Facet::Density in_density, double in_density_tolerance=0, double in_density_max_angle=0, DVectorArray const &in_view_directions=DVectorArray()) |
Sets the density settings. More... | |
FacetTessellationKit & | SetIgnoredLoops (IntArray &in_ignored_loops) |
Sets which loops should be ignored while faceting. More... | |
FacetTessellationKit & | SetFacetSize (double in_minimum_width, double in_maximum_width, int in_maximum_sides) |
Sets face size constraints. More... | |
FacetTessellationKit & | SetChordTolerance (double in_chord_tolerance, double in_maximum_chord_length, double in_maximum_chord_angle) |
Sets chord tolerance. More... | |
FacetTessellationKit & | SetSurfacePlaneTolerance (double in_plane_tolerance, double in_max_plane_angle) |
Sets tolerance between surfaces and corresponding facets. More... | |
FacetTessellationKit & | SetFacetPlaneTolerance (double in_plane_tolerance, double in_max_plane_angle) |
Sets tolerance between facet and mid-plane. More... | |
FacetTessellationKit & | SetDegeneracyBehavior (Facet::Degeneracy in_degeneracy_behavior) |
Sets the behavior the import assumes during tessellation when encountering a degeneracy. More... | |
FacetTessellationKit & | SetLocalTolerances (ToleranceArray const &in_tolerance_array, IntArray const &in_topology_array, IntArray const &in_tolerance_for_tolopoly) |
Sets specific tolerances for a set of topologies. More... | |
FacetTessellationKit & | SetIgnoreCriteria (bool in_ignore, Ignore in_ignore_criteria=Ignore::Absolute, double in_minimum_value=0, bool in_treat_faces_individually=false) |
Sets criteria for ignoring facets. More... | |
FacetTessellationKit & | SetWireEdges (bool in_wire_edges) |
Sets whether wire edges should be taken into account while faceting. More... | |
FacetTessellationKit & | SetIncrementalFaceting (Facet::IncrementalFaceting in_faceting, bool refine_tessellation=false) |
Sets whether incremental faceting should be used. More... | |
FacetTessellationKit & | SetInflection (bool in_refine) |
Sets whether facets around points of inflections may be further refined. More... | |
FacetTessellationKit & | SetImprovedFacetQuality (bool in_improved_quality) |
Sets whether extra checks should be performed to improve the quality of facets. More... | |
FacetTessellationKit & | SetFlattenVertices (bool in_flatten_vertices) |
Sets whether vertices should be forced against tolerance edges. More... | |
FacetTessellationKit & | SetOffsetFaces (bool in_offset_faces) |
Sets whether to take into account faces which are offsets of one another. More... | |
FacetTessellationKit & | SetNormals (bool in_normals) |
Sets whether to output surface normals. More... | |
FacetTessellationKit & | SetParameters (bool in_parameters) |
Sets whether to output surface parameters. More... | |
FacetTessellationKit & | SetEdges (bool in_edges) |
Sets whether to output edges. More... | |
FacetTessellationKit & | SetStrips (bool in_strips, int in_max_facets_per_strip, bool in_split_strips) |
Sets output settings for strips. More... | |
FacetTessellationKit & | UnsetTessellationLevel () |
Removes the tessellation level state. More... | |
FacetTessellationKit & | UnsetShapeGeneration () |
Removes the shape generation tessellation state. More... | |
FacetTessellationKit & | UnsetVertexMatching () |
Removes the vertex matching tessellation state. More... | |
FacetTessellationKit & | UnsetDensity () |
Removes the density tessellation state. More... | |
FacetTessellationKit & | UnsetIgnoredLoops () |
Removes the ignored loops tessellation state. More... | |
FacetTessellationKit & | UnsetFacetSize () |
Removes the facet size tessellation state. More... | |
FacetTessellationKit & | UnsetChordTolerance () |
Removes the chord tolerance tessellation state. More... | |
FacetTessellationKit & | UnsetSurfacePlaneTolerance () |
Removes the plane tolerance tessellation state. More... | |
FacetTessellationKit & | UnsetFacetPlaneTolerance () |
Removes the facet plane tolerance tessellation state. More... | |
FacetTessellationKit & | UnsetDegeneracyBehavior () |
Removes the degeneracy tessellation state. More... | |
FacetTessellationKit & | UnsetLocalTolerances () |
Removes the local tolerances tessellation state. More... | |
FacetTessellationKit & | UnsetIgnoreCriteria () |
Removes the ignore criteria tessellation state. More... | |
FacetTessellationKit & | UnsetWireEdges () |
Removes the wire edges tessellation state. More... | |
FacetTessellationKit & | UnsetIncrementalFaceting () |
Removes the incremental faceting tessellation state. More... | |
FacetTessellationKit & | UnsetInflection () |
Removes the inflection tessellation state. More... | |
FacetTessellationKit & | UnsetImprovedFacetQuality () |
Removes the facet quality tessellation state. More... | |
FacetTessellationKit & | UnsetFlattenVertices () |
Removes the vertex flattening tessellation state. More... | |
FacetTessellationKit & | UnsetOffsetFaces () |
Removes the offset faces tessellation state. More... | |
FacetTessellationKit & | UnsetNormals () |
Removes the normals tessellation state. More... | |
FacetTessellationKit & | UnsetParameters () |
Removes the parameters tessellation state. More... | |
FacetTessellationKit & | UnsetEdges () |
Removes the edges tessellation state. More... | |
FacetTessellationKit & | UnsetStrips () |
Removes the strip tessellation state. More... | |
FacetTessellationKit & | UnsetEverything () |
Removes all settings from this FacetTessellationKit. More... | |
bool | ShowTessellationLevel (TessellationLevel &out_tessellation_level, double &out_chord, double &out_angle, bool &out_generate_line_tessellation) const |
Shows the shape generation tessellation setting. More... | |
bool | ShowShapeGeneration (Facet::Shape &out_shape) const |
Shows the shape generation tessellation setting. More... | |
bool | ShowVertexMatching (Facet::Match &out_vertex_matching) const |
Shows the vertex matching tessellation setting. More... | |
bool | ShowDensity (Facet::Density &out_density, double &out_density_tolerance, double &out_density_max_angle, DVectorArray &out_view_directions) const |
Shows the density tessellation setting. More... | |
bool | ShowIgnoredLoops (IntArray &out_ignored_loops) const |
Shows the ignored loops tessellation setting. More... | |
bool | ShowFacetSize (double &out_minimum_width, double &out_maximum_width, int &out_maximum_sides) const |
Shows the facet size tessellation setting. More... | |
bool | ShowChordTolerance (double &out_chord_tolerance, double &out_maximum_chord_length, double &out_maximum_chord_angle) const |
Shows the chord tolerance tessellation setting. More... | |
bool | ShowSurfacePlaneTolerance (double &out_plane_tolerance, double &out_max_plane_angle) const |
Shows the surface plane tolerance tessellation setting. More... | |
bool | ShowFacetPlaneTolerance (double &out_plane_tolerance, double &out_max_plane_angle) const |
Shows the facet plane tolerance tessellation setting. More... | |
bool | ShowDegeneracyBehavior (Facet::Degeneracy &out_degeneracy_behavior) const |
Shows the degeneracy tessellation setting. More... | |
bool | ShowLocalTolerances (ToleranceArray &out_tolerance_array, IntArray &out_topology_array, IntArray &out_tolerance_for_tolopoly) const |
Shows the local tolerance tessellation setting. More... | |
bool | ShowIgnoreCriteria (bool &out_ignore, Ignore &out_ignore_criteria, double &out_minimum_value, bool &out_treat_faces_individually) const |
Shows the ignore criteria tessellation setting. More... | |
bool | ShowWireEdges (bool &out_wire_edges) const |
Shows the wire edges tessellation setting. More... | |
bool | ShowIncrementalFaceting (Facet::IncrementalFaceting &out_faceting, bool &out_refine_tessellation) const |
Shows the incremental faceting tessellation setting. More... | |
bool | ShowInflection (bool &out_refine) const |
Shows the inflection tessellation setting. More... | |
bool | ShowImprovedFacetQuality (bool &out_improved_quality) const |
Shows the improved facet quality tessellation setting. More... | |
bool | ShowFlattenVertices (bool &out_flatten_vertices) const |
Shows the flatten faces tessellation setting. More... | |
bool | ShowOffsetFaces (bool &out_offset_faces) const |
Shows the offset faces tessellation setting. More... | |
bool | ShowNormals (bool &out_normals) const |
Shows the normals tessellation setting. More... | |
bool | ShowParameters (bool &out_parameters) const |
Shows the parameters tessellation setting. More... | |
bool | ShowEdges (bool &out_edges) const |
Shows the edges tessellation setting. More... | |
bool | ShowStrips (bool &out_strips, int &out_max_facets_per_strip, bool &out_split_strips) const |
Shows the strips tessellation setting. More... | |
virtual HPS::Type | Type () const |
This function returns the true type of the underlying object. More... | |
virtual void | Reset () |
Resets this object to its initial, uninitialized state. More... | |
bool | HasType (HPS::Type in_mask) const |
This function indicates whether this Object has the given Type mask. More... | |
intptr_t | GetClassID () const |
Returns a unique identifier that is shared by all objects of the same class. More... | |
intptr_t | GetInstanceID () const |
Returns an identifier that can be used to identify which instance of a class an object is. More... | |
Static Public Member Functions | |
static FacetTessellationKit | GetDefault () |
Creates an FacetTessellationKit which contains the default settings. More... | |
template<typename T > | |
static intptr_t | ClassID () |
Unique identifier for this class. More... | |
Static Public Attributes | |
static const HPS::Type | staticType = HPS::Type::ParasolidFacetTessellationKit |
The FacetTessellationKit class is a user space object.
It contains settings controlling facet tessellation for Parasolid. It corresponds to the PK_TOPOL_render_facet_o_t struct.
HPS::Parasolid::FacetTessellationKit::FacetTessellationKit | ( | ) |
The default constructor creates an empty FacetTessellationKit object.
HPS::Parasolid::FacetTessellationKit::FacetTessellationKit | ( | FacetTessellationKit const & | in_kit | ) |
The copy constructor creates a new FacetTessellationKit object that contains the same settings as the source FacetTessellationKit.
in_kit | The source FacetTessellationKit to copy. |
HPS::Parasolid::FacetTessellationKit::FacetTessellationKit | ( | FacetTessellationKit && | in_that | ) |
The move constructor creates an FacetTessellationKit by transferring the underlying impl of the rvalue reference to this FacetTessellationKit thereby avoiding a copy and allocation.
in_that | An rvalue reference to an FacetTessellationKit to take the impl from. |
|
virtual |
|
inlinestaticinherited |
Unique identifier for this class.
Note: this method uses construction of static objects. If used in a constructor, it should be used in the body not the initializer list.
|
virtual |
Indicates whether this FacetTessellationKit has any values set on it.
Reimplemented from HPS::Object.
bool HPS::Parasolid::FacetTessellationKit::Equals | ( | FacetTessellationKit const & | in_kit | ) | const |
Check if the source FacetTessellationKit is equivalent to this FacetTessellationKit.
in_kit | The source FacetTessellationKit to compare to this FacetTessellationKit. |
|
inherited |
Returns a unique identifier that is shared by all objects of the same class.
|
static |
Creates an FacetTessellationKit which contains the default settings.
The returned object will not necessarily have values set for every option, but it will have settings for those options where it is reasonable to have a default. These values will be used for facet tessellation unless an option is overridden by the options passed to File::Import.
|
inherited |
Returns an identifier that can be used to identify which instance of a class an object is.
Different keys and controls will return the same value if they are backed by the same database resource.
|
inherited |
|
inlinevirtual |
bool HPS::Parasolid::FacetTessellationKit::operator!= | ( | FacetTessellationKit const & | in_kit | ) | const |
Check if the source FacetTessellationKit is not equivalent to this FacetTessellationKit.
in_kit | The source FacetTessellationKit to compare to this FacetTessellationKit. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::operator= | ( | FacetTessellationKit && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this FacetTessellationKit thereby avoiding a copy.
in_that | An rvalue reference to an FacetTessellationKit to take the impl from. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::operator= | ( | FacetTessellationKit const & | in_kit | ) |
Copies the source FacetTessellationKit into this FacetTessellationKit.
in_kit | The source FacetTessellationKit to copy. |
bool HPS::Parasolid::FacetTessellationKit::operator== | ( | FacetTessellationKit const & | in_kit | ) | const |
Check if the source FacetTessellationKit is equivalent to this FacetTessellationKit.
in_kit | The source FacetTessellationKit to compare to this FacetTessellationKit. |
|
virtualinherited |
Resets this object to its initial, uninitialized state.
Reimplemented in HPS::EventHandler, HPS::EventDispatcher, HPS::World, HPS::HighlightSearchResults, HPS::HighlightSearchResultsIterator, HPS::SelectionResults, HPS::SelectionResultsIterator, HPS::FontSearchResults, HPS::FontSearchResultsIterator, HPS::SearchResults, and HPS::SearchResultsIterator.
void HPS::Parasolid::FacetTessellationKit::Set | ( | FacetTessellationKit const & | in_kit | ) |
Copies the source FacetTessellationKit into this FacetTessellationKit.
in_kit | The source FacetTessellationKit to copy. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetChordTolerance | ( | double | in_chord_tolerance, |
double | in_maximum_chord_length, | ||
double | in_maximum_chord_angle | ||
) |
Sets chord tolerance.
in_chord_tolerance | curve chordal tolerance between a curve and its facet edges. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.curve_chord_tol. |
in_maximum_chord_length | maximum chord length. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.curve_chord_max. |
in_maximum_chord_angle | maximum chord angle, in radians. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.curve_chord_ang. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetDegeneracyBehavior | ( | Facet::Degeneracy | in_degeneracy_behavior | ) |
Sets the behavior the import assumes during tessellation when encountering a degeneracy.
in_degeneracy_behavior | describes how vertices are handled at degeneracies. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.degen. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetDensity | ( | Facet::Density | in_density, |
double | in_density_tolerance = 0 , |
||
double | in_density_max_angle = 0 , |
||
DVectorArray const & | in_view_directions = DVectorArray() |
||
) |
Sets the density settings.
in_density | The density settings. This corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.density. |
in_density_tolerance | The density tolerance. Must be specified is in_density is not ViewIndependent. This corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.local_density_tol. |
in_density_max_angle | The density tolerance maximum angle. This corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.local_density_ang. |
in_view_directions | An array of view directions. Must be specified is in_density is not ViewIndependent. This corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.view_directions. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetEdges | ( | bool | in_edges | ) |
Sets whether to output edges.
in_edges | whether to output edges. Corresponds to the value that will be passed to PK_TOPOL_render_facet_go_o_t.go_edges. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetFacetPlaneTolerance | ( | double | in_plane_tolerance, |
double | in_max_plane_angle | ||
) |
Sets tolerance between facet and mid-plane.
in_plane_tolerance | distance tolerance between facet and mid-plane. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.facet_plane_tol. |
in_max_plane_angle | angular tolerance between facet and mid-plane, in radians. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.facet_plane_ang. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetFacetSize | ( | double | in_minimum_width, |
double | in_maximum_width, | ||
int | in_maximum_sides | ||
) |
Sets face size constraints.
in_minimum_width | minimum facet width. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.min_facet_width. |
in_maximum_width | minimum facet width. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.max_facet_width. |
in_maximum_sides | maximum facet sides. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.max_facet_sides. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetFlattenVertices | ( | bool | in_flatten_vertices | ) |
Sets whether vertices should be forced against tolerance edges.
in_flatten_vertices | whether vertices should be forced against tolerance edges. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.vertices_on_planar. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetIgnoreCriteria | ( | bool | in_ignore, |
Ignore | in_ignore_criteria = Ignore::Absolute , |
||
double | in_minimum_value = 0 , |
||
bool | in_treat_faces_individually = false |
||
) |
Sets criteria for ignoring facets.
in_ignore | whether any facet should be ignored. |
in_ignore_criteria | specifies how to interpret the minimum_value parameter. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.ignore. |
in_minimum_value | minimum value for a facet not to be ignored. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.ignore_value. |
in_treat_faces_individually | whether facets should be considered individually or as part of the face's owning body for ignore calculations. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.ignore_scope. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetIgnoredLoops | ( | IntArray & | in_ignored_loops | ) |
Sets which loops should be ignored while faceting.
This corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.loops.
in_ignored_loops | loops ignored during faceting. Each entry in the vector correspond to a PK_LOOP_t object |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetImprovedFacetQuality | ( | bool | in_improved_quality | ) |
Sets whether extra checks should be performed to improve the quality of facets.
in_improved_quality | whether extra checks should be performed to improve the quality of facets. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.quality. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetIncrementalFaceting | ( | Facet::IncrementalFaceting | in_faceting, |
bool | refine_tessellation = false |
||
) |
Sets whether incremental faceting should be used.
in_faceting | sets the incremental faceting behavior. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.incremental_facetting. |
refine_tessellation | whether to refine facets. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.incremental_refinement. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetInflection | ( | bool | in_refine | ) |
Sets whether facets around points of inflections may be further refined.
in_refine | whether facets around points of inflections may be further refined. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.inflect. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetLocalTolerances | ( | ToleranceArray const & | in_tolerance_array, |
IntArray const & | in_topology_array, | ||
IntArray const & | in_tolerance_for_tolopoly | ||
) |
Sets specific tolerances for a set of topologies.
in_tolerance_array | array of tolerance specifications. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.local_tols. |
in_topology_array | array of topologies for which a specific tolerance will be applied. Each entry in the vector correspond to a PK_TOPOL_t object. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.topols_with_local_tols. |
in_tolerance_for_tolopoly | indexes connecting each element of the topology array to a tolerance. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.local_tols_for_topols. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetNormals | ( | bool | in_normals | ) |
Sets whether to output surface normals.
in_normals | whether to output surface normals. Corresponds to the value that will be passed to PK_TOPOL_render_facet_go_o_t.go_normals. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetOffsetFaces | ( | bool | in_offset_faces | ) |
Sets whether to take into account faces which are offsets of one another.
in_offset_faces | whether to take into account faces which are offsets of one another. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.respect_offset. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetParameters | ( | bool | in_parameters | ) |
Sets whether to output surface parameters.
in_parameters | whether to output surface parameters. Corresponds to the value that will be passed to PK_TOPOL_render_facet_go_o_t.go_parameters. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetShapeGeneration | ( | Facet::Shape | in_shape | ) |
Sets constraints on the facet generation.
This corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.shape.
in_shape | The behavior used during tessellation for handling concave, convex and holed entities. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetStrips | ( | bool | in_strips, |
int | in_max_facets_per_strip, | ||
bool | in_split_strips | ||
) |
Sets output settings for strips.
in_strips | whether to output facets in strips. Corresponds to the value that will be passed to PK_TOPOL_render_facet_go_o_t.go_strips. |
in_max_facets_per_strip | maximum number of facets per strips. Corresponds to the value that will be passed to PK_TOPOL_render_facet_go_o_t.go_max_facets_per_strip. |
in_split_strips | whether to split facet strips. Corresponds to the value that will be passed to PK_TOPOL_render_facet_go_o_t.split_strips. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetSurfacePlaneTolerance | ( | double | in_plane_tolerance, |
double | in_max_plane_angle | ||
) |
Sets tolerance between surfaces and corresponding facets.
in_plane_tolerance | distance tolerance between surface and its facet. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.surface_plane_tol. |
in_max_plane_angle | angular tolerance between surface and its facet, in radians. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.surface_plane_ang. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetTessellationLevel | ( | HPS::Parasolid::TessellationLevel | in_tessellation_level, |
double | in_chord = -1 , |
||
double | in_angle = -1 , |
||
bool | in_generate_line_tessellation = true |
||
) |
Sets facet tessellation level.
This function can optionally compute the best values for line tessellation based on the values passed in. Doing so is enabled by default and will result in lines which smoothly match their respective faces.
in_tessellation_level | The tessellation level used for importing facets. |
in_chord | The chord tolerance. Only considered if in_tessellation_level is set to Custom. |
in_angle | The angle tolerance. Only considered if in_tessellation_level is set to Custom. |
in_generate_line_tessellation | Automatically figure out the best parameters for line tessellation based on facet tessellation levels. True by default. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetVertexMatching | ( | Facet::Match | in_vertex_matching | ) |
Sets the vertex matching strategy at edges This corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.match.
in_vertex_matching | The behavior used during tessellation for handling facet meshes between neighboring faces. |
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::SetWireEdges | ( | bool | in_wire_edges | ) |
Sets whether wire edges should be taken into account while faceting.
in_wire_edgeswhether | wire edges should be taken into account while faceting. Corresponds to the value that will be passed to PK_TOPOL_facet_mesh_o_t.wire_edges. |
void HPS::Parasolid::FacetTessellationKit::Show | ( | FacetTessellationKit & | out_kit | ) | const |
Copies this FacetTessellationKit into the given FacetTessellationKit.
out_kit | The FacetTessellationKit to populate with the contents of this FacetTessellationKit. |
bool HPS::Parasolid::FacetTessellationKit::ShowChordTolerance | ( | double & | out_chord_tolerance, |
double & | out_maximum_chord_length, | ||
double & | out_maximum_chord_angle | ||
) | const |
Shows the chord tolerance tessellation setting.
out_chord_tolerance | The tolerance setting for this kit. |
out_maximum_chord_length | The maximum chord length setting for this kit. |
out_maximum_chord_angle | The maximum chord angle setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowDegeneracyBehavior | ( | Facet::Degeneracy & | out_degeneracy_behavior | ) | const |
Shows the degeneracy tessellation setting.
out_degeneracy_behavior | The degeneracy setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowDensity | ( | Facet::Density & | out_density, |
double & | out_density_tolerance, | ||
double & | out_density_max_angle, | ||
DVectorArray & | out_view_directions | ||
) | const |
Shows the density tessellation setting.
out_density | The density setting for this kit. |
out_density_tolerance | The density tolerance. |
out_density_max_angle | The density tolerance maximum angle. |
out_view_directions | An array of view directions. |
bool HPS::Parasolid::FacetTessellationKit::ShowEdges | ( | bool & | out_edges | ) | const |
Shows the edges tessellation setting.
out_edges | The edges setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowFacetPlaneTolerance | ( | double & | out_plane_tolerance, |
double & | out_max_plane_angle | ||
) | const |
Shows the facet plane tolerance tessellation setting.
out_plane_tolerance | The tolerance setting for this kit. |
out_max_plane_angle | The maximum angle setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowFacetSize | ( | double & | out_minimum_width, |
double & | out_maximum_width, | ||
int & | out_maximum_sides | ||
) | const |
Shows the facet size tessellation setting.
out_minimum_width | The minimum facet width setting for this kit. |
out_maximum_width | The maximum facet width setting for this kit. |
out_maximum_sides | The maximum facet side setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowFlattenVertices | ( | bool & | out_flatten_vertices | ) | const |
Shows the flatten faces tessellation setting.
out_flatten_vertices | The flatten faces setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowIgnoreCriteria | ( | bool & | out_ignore, |
Ignore & | out_ignore_criteria, | ||
double & | out_minimum_value, | ||
bool & | out_treat_faces_individually | ||
) | const |
Shows the ignore criteria tessellation setting.
out_ignore | Whether facets are ignored in this kit. If this is false the other parameters are meaningless. |
out_ignore_criteria | The ignore criteria setting for this kit. Meaningless if out_ignore is false. |
out_minimum_value | The minimum value for ignoring a facet for this kit. Meaningless if out_ignore is false. |
out_treat_faces_individually | Whether faces are considered individually when deciding if they should be ignored. Meaningless if out_ignore is false. |
bool HPS::Parasolid::FacetTessellationKit::ShowIgnoredLoops | ( | IntArray & | out_ignored_loops | ) | const |
Shows the ignored loops tessellation setting.
out_ignored_loops | The ignored loops setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowImprovedFacetQuality | ( | bool & | out_improved_quality | ) | const |
Shows the improved facet quality tessellation setting.
out_improved_quality | The out_improved_quality setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowIncrementalFaceting | ( | Facet::IncrementalFaceting & | out_faceting, |
bool & | out_refine_tessellation | ||
) | const |
Shows the incremental faceting tessellation setting.
out_faceting | The incremental faceting setting for this kit. |
out_refine_tessellation | Whether facets are refined setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowInflection | ( | bool & | out_refine | ) | const |
Shows the inflection tessellation setting.
out_refine | The inflection setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowLocalTolerances | ( | ToleranceArray & | out_tolerance_array, |
IntArray & | out_topology_array, | ||
IntArray & | out_tolerance_for_tolopoly | ||
) | const |
Shows the local tolerance tessellation setting.
out_tolerance_array | The local tolerance array for this kit. |
out_topology_array | The topology array for this kit. |
out_tolerance_for_tolopoly | The index array for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowNormals | ( | bool & | out_normals | ) | const |
Shows the normals tessellation setting.
out_normals | The normals setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowOffsetFaces | ( | bool & | out_offset_faces | ) | const |
Shows the offset faces tessellation setting.
out_offset_faces | The offset faces setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowParameters | ( | bool & | out_parameters | ) | const |
Shows the parameters tessellation setting.
out_parameters | The parameters setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowShapeGeneration | ( | Facet::Shape & | out_shape | ) | const |
Shows the shape generation tessellation setting.
out_shape | The shape generation setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowStrips | ( | bool & | out_strips, |
int & | out_max_facets_per_strip, | ||
bool & | out_split_strips | ||
) | const |
Shows the strips tessellation setting.
out_strips | The strips setting for this kit. |
out_max_facets_per_strip | The maximum number of facet per strip setting for this kit. |
out_split_strips | Whether strips can be split for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowSurfacePlaneTolerance | ( | double & | out_plane_tolerance, |
double & | out_max_plane_angle | ||
) | const |
Shows the surface plane tolerance tessellation setting.
out_plane_tolerance | The tolerance setting for this kit. |
out_max_plane_angle | The maximum angle setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowTessellationLevel | ( | TessellationLevel & | out_tessellation_level, |
double & | out_chord, | ||
double & | out_angle, | ||
bool & | out_generate_line_tessellation | ||
) | const |
Shows the shape generation tessellation setting.
out_tessellation_level | The tessellation level used for this import |
out_chord | The chord tolerance. Only relevant if out_tessellation_level is Custom. |
out_angle | The angle tolerance. Only relevant if out_tessellation_level is Custom. |
out_generate_line_tessellation | Whether line tessellation levels are automatically generated based on facet tessellation level. |
bool HPS::Parasolid::FacetTessellationKit::ShowVertexMatching | ( | Facet::Match & | out_vertex_matching | ) | const |
Shows the vertex matching tessellation setting.
out_vertex_matching | The vertex matching tessellation setting for this kit. |
bool HPS::Parasolid::FacetTessellationKit::ShowWireEdges | ( | bool & | out_wire_edges | ) | const |
Shows the wire edges tessellation setting.
out_wire_edges | The wire edge setting for this kit. |
|
virtualinherited |
This function returns the true type of the underlying object.
This function is useful for finding the type of smart pointer objects that have been cast to more generic types.
Reimplemented in HPS::UpdateOptionsControl, HPS::HighlightControl, HPS::SelectionOptionsControl, HPS::OffScreenWindowOptionsControl, HPS::ApplicationWindowOptionsControl, HPS::StandAloneWindowOptionsControl, HPS::AttributeLockControl, HPS::WindowInfoControl, HPS::DebuggingControl, HPS::SubwindowControl, HPS::ContourLineControl, HPS::VisualEffectsControl, HPS::TransformMaskControl, HPS::PostProcessEffectsControl, HPS::DrawingAttributeControl, HPS::HiddenLineAttributeControl, HPS::PerformanceControl, HPS::NURBSSurfaceAttributeControl, HPS::ConditionControl, HPS::StyleControl, HPS::PortfolioControl, HPS::MaterialMappingControl, HPS::TextureMatrixControl, HPS::ModellingMatrixControl, HPS::CurveAttributeControl, HPS::EdgeAttributeControl, HPS::LineAttributeControl, HPS::TextAttributeControl, HPS::CuttingSectionAttributeControl, HPS::CylinderAttributeControl, HPS::LightingAttributeControl, HPS::SphereAttributeControl, HPS::MarkerAttributeControl, HPS::CullingControl, HPS::ColorInterpolationControl, HPS::TransparencyControl, HPS::SelectabilityControl, HPS::CameraControl, HPS::VisibilityControl, HPS::BoundingControl, HPS::Kit, and HPS::Control.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetChordTolerance | ( | ) |
Removes the chord tolerance tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetDegeneracyBehavior | ( | ) |
Removes the degeneracy tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetDensity | ( | ) |
Removes the density tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetEdges | ( | ) |
Removes the edges tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetEverything | ( | ) |
Removes all settings from this FacetTessellationKit.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetFacetPlaneTolerance | ( | ) |
Removes the facet plane tolerance tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetFacetSize | ( | ) |
Removes the facet size tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetFlattenVertices | ( | ) |
Removes the vertex flattening tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetIgnoreCriteria | ( | ) |
Removes the ignore criteria tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetIgnoredLoops | ( | ) |
Removes the ignored loops tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetImprovedFacetQuality | ( | ) |
Removes the facet quality tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetIncrementalFaceting | ( | ) |
Removes the incremental faceting tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetInflection | ( | ) |
Removes the inflection tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetLocalTolerances | ( | ) |
Removes the local tolerances tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetNormals | ( | ) |
Removes the normals tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetOffsetFaces | ( | ) |
Removes the offset faces tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetParameters | ( | ) |
Removes the parameters tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetShapeGeneration | ( | ) |
Removes the shape generation tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetStrips | ( | ) |
Removes the strip tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetSurfacePlaneTolerance | ( | ) |
Removes the plane tolerance tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetTessellationLevel | ( | ) |
Removes the tessellation level state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetVertexMatching | ( | ) |
Removes the vertex matching tessellation state.
FacetTessellationKit& HPS::Parasolid::FacetTessellationKit::UnsetWireEdges | ( | ) |
Removes the wire edges tessellation state.
|
static |