#include <sprk_exchange.h>
|
bool | Empty () const |
|
bool | Equals (TessellationOptionsKit const &in_kit) const |
|
HPS::Type | ObjectType () const |
|
bool | operator!= (TessellationOptionsKit const &in_kit) const |
|
TessellationOptionsKit & | operator= (TessellationOptionsKit const &in_kit) |
|
TessellationOptionsKit & | operator= (TessellationOptionsKit &&in_that) |
|
bool | operator== (TessellationOptionsKit const &in_kit) const |
|
void | Set (TessellationOptionsKit const &in_kit) |
|
TessellationOptionsKit & | SetAccuracy (Tessellation::Accuracy in_type, bool in_accurate_normals=true, bool in_accurate_surface_curvatures=false, double in_accurate_grid_maximum_stitch_length=0.0) |
|
TessellationOptionsKit & | SetLevel (Tessellation::Level in_level) |
|
TessellationOptionsKit & | SetLevel (Tessellation::Chord::Limit in_limit_type, double in_limit, double in_angle_tolerance) |
|
TessellationOptionsKit & | SetMaximumEdgeLength (double in_length) |
|
TessellationOptionsKit & | SetUVPointPreservation (bool in_state) |
|
void | Show (TessellationOptionsKit &out_kit) const |
|
bool | ShowAccuracy (Tessellation::Accuracy &out_type, bool &out_accurate_normals, bool &out_accurate_surface_curvatures, double &out_accurate_grid_maximum_stitch_length) const |
|
bool | ShowLevel (Tessellation::Type &out_type, Tessellation::Level &out_level, Tessellation::Chord::Limit &out_limit_type, double &out_limit, double &out_angle_tolerance) const |
|
bool | ShowMaximumEdgeLength (double &out_length) const |
|
bool | ShowUVPointPreservation (bool &out_state) const |
|
| TessellationOptionsKit () |
|
| TessellationOptionsKit (TessellationOptionsKit const &in_kit) |
|
| TessellationOptionsKit (TessellationOptionsKit &&in_that) |
|
TessellationOptionsKit & | UnsetAccuracy () |
|
TessellationOptionsKit & | UnsetEverything () |
|
TessellationOptionsKit & | UnsetLevel () |
|
TessellationOptionsKit & | UnsetMaximumEdgeLength () |
|
TessellationOptionsKit & | UnsetUVPointPreservation () |
|
| Sprocket (Sprocket &&in_that) |
|
intptr_t | GetClassID () const |
|
intptr_t | GetInstanceID () const |
|
bool | HasType (HPS::Type in_mask) const |
|
| Object (Object const &that) |
|
| Object (Object &&in_that) |
|
Object & | operator= (Object const &other_object) |
|
Object & | operator= (Object &&in_that) |
|
virtual void | Reset () |
|
virtual HPS::Type | Type () const |
|
|
static const HPS::Type | staticType = HPS::Type::ExchangeTessellationOptionsKit |
|
static const HPS::Type | staticType = HPS::Type::SprocketKit |
|
static const HPS::Type | staticType = HPS::Type::None |
|
The TessellationOptionsKit class is a user space object. It contains settings controlling how STL data is exported via Exchange.
HPS::Exchange::TessellationOptionsKit::TessellationOptionsKit |
( |
| ) |
|
bool HPS::Exchange::TessellationOptionsKit::Empty |
( |
| ) |
const |
|
virtual |
Creates an TessellationOptionsKit 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 import unless an option is overridden by the options passed to File::Tessellation.
- Returns
- An TessellationOptionsKit with the default settings.
HPS::Type HPS::Exchange::TessellationOptionsKit::ObjectType |
( |
| ) |
const |
|
inlinevirtual |
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.
Reimplemented from HPS::SprocketKit.
TessellationOptionsKit& HPS::Exchange::TessellationOptionsKit::SetAccuracy |
( |
Tessellation::Accuracy |
in_type, |
|
|
bool |
in_accurate_normals = true , |
|
|
bool |
in_accurate_surface_curvatures = false , |
|
|
double |
in_accurate_grid_maximum_stitch_length = 0.0 |
|
) |
| |
Sets the accuracy of the tessellation that will be generated for BRep data.
- Parameters
-
- Returns
- A reference to this TessellationOptionsKit.
Sets the user defined quality of the tessellation that will be generated for BRep data. This implicitly sets A3DRWParamsTessellationData::m_eTessellationLevel to kA3DTessLODUserDefined.
- Parameters
-
in_limit_type | The type of the chord limit to be specified. |
in_limit | Either the ratio of the tessellation chord height to the bounding box height which should be in the range [50, 10000], or the maximum distance between the surface definition and the tessellation approximation, depending on the preceding argument. |
in_angle_tolerance | The maximum angle in degrees between two consecutive wire elements in the generated tessellation which should be in the range [10, 40]. This corresponds to the value that will be passed to A3DRWParamsTessellationData::m_dAngleToleranceDeg. |
- Returns
- A reference to this TessellationOptionsKit.
Sets the maximum length of triangle edges in the tessellation generated for BRep data. This corresponds to the value that will be passed to A3DRWParamsTessellationData::m_dMaximalTriangleEdgeLength.
- Parameters
-
in_length | The maximum length of triangle edges in the tessellation generated for BRep data. The value must be non-negative, and if set to 0.0, the length will not be used when generating the tessellation. |
- Returns
- A reference to this TessellationOptionsKit.
Sets whether to keep parametric points as texture coordinates when generating the tessellation for BRep data. This corresponds to the value that will be passed to A3DRWParamsTessellationData::m_bKeepUVPoints.
- Parameters
-
in_state | Whether to keep parametric points as texture coordinates when generating the tessellation for BRep data. |
- Returns
- A reference to this TessellationOptionsKit.
bool HPS::Exchange::TessellationOptionsKit::ShowAccuracy |
( |
Tessellation::Accuracy & |
out_type, |
|
|
bool & |
out_accurate_normals, |
|
|
bool & |
out_accurate_surface_curvatures, |
|
|
double & |
out_accurate_grid_maximum_stitch_length |
|
) |
| const |
Shows the accuracy setting.
- Parameters
-
out_type | The type of the accuracy which was specified. |
out_accurate_normals | Whether to compute surface normals when performing accurate tessellation. This only applies if out_type is different than Tessellation::Accuracy::Standard. |
out_accurate_surface_curvatures | Whether to take into account surfaces curvature in accurate tessellation to controle triangles elongation directions. This only applies if out_type is different than Tessellation::Accuracy::Standard. |
out_accurate_grid_maximum_stitch_length | Maximal grid stitch length. Disabled if value is 0. Be careful, a too small value can generate a huge tessellation. This only applies if out_type is Tessellation::Accuracy::GridAccurate. |
- Returns
- true if an accuracy setting was specified, false otherwise.
Shows the level setting.
- Parameters
-
out_type | The type of the level setting which was specified. |
out_level | The predefined quality of the tessellation that will be generated for BRep data. This is only valid if out_type is Tessellation::Type::Standard. |
out_limit_type | The type of chord limit which was specified. This is only valid if out_type is Tessellation::Type::Custom. |
out_limit | The chord limit to use to generate tessellation for BRep data. Its interpretation depends on the preceding argument. This is only valid if out_type is Tessellation::Type::Custom. |
out_angle_tolerance | The maximum angle in degrees between two consecutive wire elements in the generated tessellation. This is only valid if out_type is Tessellation::Type::Custom. |
- Returns
- true if a level setting was specified, false otherwise.
bool HPS::Exchange::TessellationOptionsKit::ShowMaximumEdgeLength |
( |
double & |
out_length | ) |
const |
Shows the maximum edge length setting.
- Parameters
-
out_length | The maximum edge length setting. |
- Returns
- true if a maximum edge length setting was specified, false otherwise.
bool HPS::Exchange::TessellationOptionsKit::ShowUVPointPreservation |
( |
bool & |
out_state | ) |
const |
Shows the UV preservation setting.
- Parameters
-
out_state | Whether to keep parametric points as texture coordinates when generating the tessellation for BRep data. |
- Returns
- true if a UV preservation setting was specified, false otherwise.
The documentation for this class was generated from the following file: