NX Open C++ Reference Guide
|
Mesh Surface Builder class. More...
Public Types | |
enum | ConstraintDirection { ConstraintDirectionNone, ConstraintDirectionIsoparametric, ConstraintDirectionNormal } |
End face constraints direction. More... | |
enum | ConstraintType { ConstraintTypeNone, ConstraintTypeTangent, ConstraintTypeCurvature } |
End face constraints types. More... | |
Public Member Functions | |
void | BuildProfileFromSections (bool conehead, NXOpen::MeshProfileString::Type profileStringType, NXOpen::MeshParameterData::FeatureType skinType, NXOpen::MeshProfileString::SelectedPoint stringPointType, const std::vector< NXOpen::Section * > §ions, bool editInsertProfile, NXOpen::MeshProfileString *profile) |
Creates mesh surface profile string. | |
NXOpen::Features::MeshSurfaceBuilder::ConstraintDirection | FaceConstraintDirection () |
Returns Created in NX4.0.0. | |
NXOpen::MeshParameterData::FeatureType | FeatureType () |
Returns Created in NX4.0.0. | |
void | GetAngleAlignmentPoints (NXOpen::Point3d *point1, NXOpen::Point3d *point2) |
Get angle alignment points Created in NX4.0.0. | |
NXOpen::Vector3d | GetDistanceAlignmentVector () |
Get distance alignment vector. | |
void | GetFaceConstraintCollectors (int nSides, std::vector< int > &facesCons, int numCollectors, std::vector< NXOpen::ScCollector * > &collectors, int numConsTypes, std::vector< NXOpen::Features::MeshSurfaceBuilder::ConstraintType > &consTypes) |
Get faces constraints collectors for through curves and curves mesh types surfaces. | |
std::vector < NXOpen::Features::MeshSurfaceBuilder::ConstraintType > | GetFaceConstraintTypes (int constraintSize) |
Get end constraints types. | |
NXOpen::MeshProfileString * | GetProfile (int index) |
Get mesh profile string with provided index. | |
void | GetProfilePointAlignment (int stringIndex, int arrayLength, std::vector< int > &alignIndex, std::vector< double > &alignParams) |
Get profile string point alignment info. | |
std::vector< double > | GetTolerances (int tolLength) |
Get tolerances. | |
std::vector< NXString > | GetToleranceString (int tolStrLength) |
Get tolerances strings. | |
void | InsertProfileString (int profileIndex, NXOpen::MeshProfileString::InsertOrder order, int stringIndex) |
Insert a string (string_index, with order) into a profile (profile_index). | |
NXOpen::MeshParameterData * | NewParametersData () |
Create a mesh parameters transient object data. | |
NXOpen::MeshProfileString * | NewProfile () |
Construct a new mesh profile string transient object. | |
NXOpen::SurfaceRebuildData * | NewRebuildData () |
Allocate memory for Mesh type surface rebuild data. | |
bool | NormalToEndSections () |
Returns the normal to end sections for Through Curves surface. | |
NXOpen::MeshParameterData * | ParametersData () |
Returns Created in NX4.0.0. | |
NXOpen::SurfaceRebuildData * | RebuildData () |
Returns Created in NX4.0.0. | |
void | RemovePointsAlignment () |
Remove points alignment information. | |
void | RemoveProfileString (int profileIndex, int stringIndex) |
Remove a string (string_index) from a profile (profile_index) Created in NX4.0.0. | |
void | RemoveSpineAlignment () |
Remove spine alignment. | |
void | ReorderProfileStringCurves (int stringIndex, NXOpen::Curve *stringStartCurve) |
Reorder profile string curves. | |
void | RestorePointsAlignment () |
Restore the last removed points alignment information if there is one. | |
void | SetAngleAlignmentPoints (const NXOpen::Point3d &point1, const NXOpen::Point3d &point2) |
Set angle alignment points. | |
void | SetDistanceAlignmentVector (const NXOpen::Vector3d &vector) |
Set distance alignment vector Created in NX4.0.0. | |
void | SetFaceConstraintCollectors (const std::vector< int > &facesCons, const std::vector< NXOpen::ScCollector * > &collectors, const std::vector< NXOpen::Features::MeshSurfaceBuilder::ConstraintType > &consTypes) |
Set faces constraints collectors for through curves and curves mesh types surfaces. | |
void | SetFaceConstraintDirection (NXOpen::Features::MeshSurfaceBuilder::ConstraintDirection constraintDirection) |
Sets Created in NX4.0.0. | |
void | SetFaceConstraintTypes (const std::vector< NXOpen::Features::MeshSurfaceBuilder::ConstraintType > &constraintTypes) |
Set end constraints types. | |
void | SetFeatureType (NXOpen::MeshParameterData::FeatureType featureType) |
Sets Created in NX4.0.0. | |
void | SetNormalToEndSections (bool normalToEndSections) |
Sets the normal to end sections for Through Curves surface. | |
void | SetParametersData (NXOpen::MeshParameterData *parameters) |
Sets Created in NX4.0.0. | |
void | SetProfilePointAlignment (int stringIndex, const std::vector< int > &alignIndex, const std::vector< double > &alignParams) |
Set profile string alignment info. | |
void | SetRebuildData (NXOpen::SurfaceRebuildData *rbData) |
Sets Created in NX4.0.0. | |
void | SetSimpleConstruction (bool simple) |
Sets Created in NX4.0.0. | |
void | SetTolerances (const std::vector< double > &tol) |
Set tolerances for mesh type surfaces. | |
void | SetToleranceString (std::vector< NXString > &tolString) |
Set tolerances strings for mesh type surface. | |
bool | SimpleConstruction () |
Returns Created in NX4.0.0. | |
void | ValidateFeatureParameters () |
Validate the new parameters for mesh surface editing. | |
![]() | |
NXOpen::Features::Feature * | CommitFeature () |
Commits the feature parameters and creates the feature. | |
NXOpen::Features::Feature * | GetFeature () |
Returns the feature currently being edited by this builder. | |
void | HideInternalParentFeatureAfterEdit (NXOpen::Features::Feature *parentFeature) |
Re-suppress an internal parent feature (a slave feature) after it has been edited. | |
bool | ParentFeatureInternal () |
Returns whether or not the latest timestamped parent feature of this feature should be made internal Created in NX5.0.0. | |
bool | PatchSolutionFlag () |
Returns the patch solution flag Created in NX8.0.1. | |
NXString | PatchSurfaceFilename () |
Returns the patch surface filename Created in NX8.0.1. | |
void | SetParentFeatureInternal (NXOpen::Features::Feature *parentFeature) |
Set the parent features which would be internal or slaves to the feature being created or commited Created in NX6.0.0. | |
void | SetParentFeatureInternal (bool isInternal) |
Sets whether or not the latest timestamped parent feature of this feature should be made internal Created in NX5.0.0. | |
void | SetPatchSolutionFlag (bool optionValue) |
Sets the patch solution flag Created in NX8.0.1. | |
void | SetPatchSurfaceFilename (const NXString &surfaceFilename) |
Sets the patch surface filename Created in NX8.0.1. | |
void | SetPatchSurfaceFilename (const char *surfaceFilename) |
Sets the patch surface filename Created in NX8.0.1. | |
void | SetSurroundingPatchSurfaceFilename (const NXString &surroundingSurfaceFilename) |
Sets the surrounding patch surface filename Created in NX8.0.1. | |
void | SetSurroundingPatchSurfaceFilename (const char *surroundingSurfaceFilename) |
Sets the surrounding patch surface filename Created in NX8.0.1. | |
void | ShowInternalParentFeatureForEdit (NXOpen::Features::Feature *parentFeature) |
Unsuppress an internal parent feature (a slave feature) so it can be edited. | |
NXString | SurroundingPatchSurfaceFilename () |
Returns the surrounding patch surface filename Created in NX8.0.1. | |
void | UnsetParentFeatureInternal (NXOpen::Features::Feature *parentFeature) |
Set the internal parent feature of the feature being edited to external Created in NX6.0.0. | |
![]() | |
NXOpen::NXObject * | Commit () |
Commits any edits that have been applied to the builder. | |
void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. | |
std::vector< NXOpen::NXObject * > | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. | |
NXOpen::NXObject * | GetObject () |
Returns the object currently being edited by this builder. | |
void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. | |
![]() | |
tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Mesh Surface Builder class.
To create a new instance of this class, use Features::FeatureCollection::CreateMeshSurfaceBuilder
Created in NX4.0.0.
void NXOpen::Features::MeshSurfaceBuilder::BuildProfileFromSections | ( | bool | conehead, |
NXOpen::MeshProfileString::Type | profileStringType, | ||
NXOpen::MeshParameterData::FeatureType | skinType, | ||
NXOpen::MeshProfileString::SelectedPoint | stringPointType, | ||
const std::vector< NXOpen::Section * > & | sections, | ||
bool | editInsertProfile, | ||
NXOpen::MeshProfileString * | profile | ||
) |
Creates mesh surface profile string.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
conehead | Display conehead? |
profileStringType | Mesh profile string type |
skinType | Mesh surface type |
stringPointType | Profile string point type |
sections | Sections |
editInsertProfile | Flag to indicate if this is temporary profile to inserting new string purpose only. |
profile | Mesh profile string |
NXOpen::Features::MeshSurfaceBuilder::ConstraintDirection NXOpen::Features::MeshSurfaceBuilder::FaceConstraintDirection | ( | ) |
Returns
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
NXOpen::MeshParameterData::FeatureType NXOpen::Features::MeshSurfaceBuilder::FeatureType | ( | ) |
Returns
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
void NXOpen::Features::MeshSurfaceBuilder::GetAngleAlignmentPoints | ( | NXOpen::Point3d * | point1, |
NXOpen::Point3d * | point2 | ||
) |
NXOpen::Vector3d NXOpen::Features::MeshSurfaceBuilder::GetDistanceAlignmentVector | ( | ) |
Get distance alignment vector.
void NXOpen::Features::MeshSurfaceBuilder::GetFaceConstraintCollectors | ( | int | nSides, |
std::vector< int > & | facesCons, | ||
int | numCollectors, | ||
std::vector< NXOpen::ScCollector * > & | collectors, | ||
int | numConsTypes, | ||
std::vector< NXOpen::Features::MeshSurfaceBuilder::ConstraintType > & | consTypes | ||
) |
Get faces constraints collectors for through curves and curves mesh types surfaces.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
nSides | n sides |
facesCons | Number of faces on each side |
numCollectors | num collectors |
collectors | Constraints collectors. |
numConsTypes | num cons types |
consTypes | type on each side. |
std::vector<NXOpen::Features::MeshSurfaceBuilder::ConstraintType> NXOpen::Features::MeshSurfaceBuilder::GetFaceConstraintTypes | ( | int | constraintSize | ) |
Get end constraints types.
constraintSize | constraint size |
NXOpen::MeshProfileString* NXOpen::Features::MeshSurfaceBuilder::GetProfile | ( | int | index | ) |
Get mesh profile string with provided index.
index | Profile index. |
void NXOpen::Features::MeshSurfaceBuilder::GetProfilePointAlignment | ( | int | stringIndex, |
int | arrayLength, | ||
std::vector< int > & | alignIndex, | ||
std::vector< double > & | alignParams | ||
) |
Get profile string point alignment info.
Given a profile string, get alignment point parameters on segments indexed by align_index along the profile string.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
stringIndex | string index in profile strings |
arrayLength | array length |
alignIndex | Alignment indices |
alignParams | Alignment parameters |
std::vector<double> NXOpen::Features::MeshSurfaceBuilder::GetTolerances | ( | int | tolLength | ) |
Get tolerances.
tolLength | tol length |
std::vector<NXString> NXOpen::Features::MeshSurfaceBuilder::GetToleranceString | ( | int | tolStrLength | ) |
Get tolerances strings.
tolStrLength | tol str length |
void NXOpen::Features::MeshSurfaceBuilder::InsertProfileString | ( | int | profileIndex, |
NXOpen::MeshProfileString::InsertOrder | order, | ||
int | stringIndex | ||
) |
Insert a string (string_index, with order) into a profile (profile_index).
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
profileIndex | mesh profile string index |
order | before or after |
stringIndex | String index in mesh profile string |
NXOpen::MeshParameterData* NXOpen::Features::MeshSurfaceBuilder::NewParametersData | ( | ) |
Create a mesh parameters transient object data.
NXOpen::MeshProfileString* NXOpen::Features::MeshSurfaceBuilder::NewProfile | ( | ) |
Construct a new mesh profile string transient object.
NXOpen::SurfaceRebuildData* NXOpen::Features::MeshSurfaceBuilder::NewRebuildData | ( | ) |
Allocate memory for Mesh type surface rebuild data.
bool NXOpen::Features::MeshSurfaceBuilder::NormalToEndSections | ( | ) |
Returns the normal to end sections for Through Curves surface.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
NXOpen::MeshParameterData* NXOpen::Features::MeshSurfaceBuilder::ParametersData | ( | ) |
Returns
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
NXOpen::SurfaceRebuildData* NXOpen::Features::MeshSurfaceBuilder::RebuildData | ( | ) |
Returns
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
void NXOpen::Features::MeshSurfaceBuilder::RemovePointsAlignment | ( | ) |
Remove points alignment information.
Remove alignment can be restore by calling Features::MeshSurfaceBuilder::RestorePointsAlignment
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
void NXOpen::Features::MeshSurfaceBuilder::RemoveProfileString | ( | int | profileIndex, |
int | stringIndex | ||
) |
Remove a string (string_index) from a profile (profile_index)
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
profileIndex | mesh profile string index |
stringIndex | String index in mesh profile string |
void NXOpen::Features::MeshSurfaceBuilder::RemoveSpineAlignment | ( | ) |
Remove spine alignment.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
void NXOpen::Features::MeshSurfaceBuilder::ReorderProfileStringCurves | ( | int | stringIndex, |
NXOpen::Curve * | stringStartCurve | ||
) |
Reorder profile string curves.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
stringIndex | Profile string index. |
stringStartCurve | New start curve. |
void NXOpen::Features::MeshSurfaceBuilder::RestorePointsAlignment | ( | ) |
Restore the last removed points alignment information if there is one.
Once restored, the saved alignment information will no logner be available.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
void NXOpen::Features::MeshSurfaceBuilder::SetAngleAlignmentPoints | ( | const NXOpen::Point3d & | point1, |
const NXOpen::Point3d & | point2 | ||
) |
void NXOpen::Features::MeshSurfaceBuilder::SetDistanceAlignmentVector | ( | const NXOpen::Vector3d & | vector | ) |
Set distance alignment vector
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
vector | Vector |
void NXOpen::Features::MeshSurfaceBuilder::SetFaceConstraintCollectors | ( | const std::vector< int > & | facesCons, |
const std::vector< NXOpen::ScCollector * > & | collectors, | ||
const std::vector< NXOpen::Features::MeshSurfaceBuilder::ConstraintType > & | consTypes | ||
) |
Set faces constraints collectors for through curves and curves mesh types surfaces.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
facesCons | Number of faces on all sides |
collectors | Constraints collectors. |
consTypes | type on each side. |
void NXOpen::Features::MeshSurfaceBuilder::SetFaceConstraintDirection | ( | NXOpen::Features::MeshSurfaceBuilder::ConstraintDirection | constraintDirection | ) |
Sets
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
constraintDirection | constraint direction |
void NXOpen::Features::MeshSurfaceBuilder::SetFaceConstraintTypes | ( | const std::vector< NXOpen::Features::MeshSurfaceBuilder::ConstraintType > & | constraintTypes | ) |
Set end constraints types.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
constraintTypes | Constraint types |
void NXOpen::Features::MeshSurfaceBuilder::SetFeatureType | ( | NXOpen::MeshParameterData::FeatureType | featureType | ) |
Sets
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
featureType | feature type |
void NXOpen::Features::MeshSurfaceBuilder::SetNormalToEndSections | ( | bool | normalToEndSections | ) |
Sets the normal to end sections for Through Curves surface.
Created in NX5.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
normalToEndSections | normal to end sections |
void NXOpen::Features::MeshSurfaceBuilder::SetParametersData | ( | NXOpen::MeshParameterData * | parameters | ) |
Sets
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
parameters | parameters |
void NXOpen::Features::MeshSurfaceBuilder::SetProfilePointAlignment | ( | int | stringIndex, |
const std::vector< int > & | alignIndex, | ||
const std::vector< double > & | alignParams | ||
) |
Set profile string alignment info.
For each profile string, user needs to spectify the point alignment parameters on segments indexed by align_index along the profile string.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
stringIndex | string index in profile strings |
alignIndex | Alignment indices |
alignParams | Alignment parameters (normalized) |
void NXOpen::Features::MeshSurfaceBuilder::SetRebuildData | ( | NXOpen::SurfaceRebuildData * | rbData | ) |
Sets
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
rbData | Rebuild data |
void NXOpen::Features::MeshSurfaceBuilder::SetSimpleConstruction | ( | bool | simple | ) |
Sets
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
simple | simple |
void NXOpen::Features::MeshSurfaceBuilder::SetTolerances | ( | const std::vector< double > & | tol | ) |
Set tolerances for mesh type surfaces.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
tol | Tolerances |
void NXOpen::Features::MeshSurfaceBuilder::SetToleranceString | ( | std::vector< NXString > & | tolString | ) |
Set tolerances strings for mesh type surface.
The strings much match the values.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
tolString | Tolerances NOTE: The full Unicode character set is not supported for this parameter. |
bool NXOpen::Features::MeshSurfaceBuilder::SimpleConstruction | ( | ) |
Returns
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
void NXOpen::Features::MeshSurfaceBuilder::ValidateFeatureParameters | ( | ) |
Validate the new parameters for mesh surface editing.
Created in NX4.0.0.
License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")