NX Open C++ Reference Guide
Public Types | Public Member Functions
NXOpen::Features::MeshSurfaceBuilder Class Reference

Mesh Surface Builder class. More...

Inheritance diagram for NXOpen::Features::MeshSurfaceBuilder:
NXOpen::Features::FeatureBuilder NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

List of all members.

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 * > &sections, 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::MeshProfileStringGetProfile (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< NXStringGetToleranceString (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::MeshParameterDataNewParametersData ()
 Create a mesh parameters transient object data.
NXOpen::MeshProfileStringNewProfile ()
 Construct a new mesh profile string transient object.
NXOpen::SurfaceRebuildDataNewRebuildData ()
 Allocate memory for Mesh type surface rebuild data.
bool NormalToEndSections ()
 Returns the normal to end sections for Through Curves surface.
NXOpen::MeshParameterDataParametersData ()
 Returns
Created in NX4.0.0.
NXOpen::SurfaceRebuildDataRebuildData ()
 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.

Detailed Description

Mesh Surface Builder class.


To create a new instance of this class, use Features::FeatureCollection::CreateMeshSurfaceBuilder

Created in NX4.0.0.


Member Enumeration Documentation

End face constraints direction.

Enumerator:
ConstraintDirectionNone 

Not specified.

ConstraintDirectionIsoparametric 

Isoparametric.

ConstraintDirectionNormal 

Normal.

End face constraints types.

Enumerator:
ConstraintTypeNone 

No constraint.

ConstraintTypeTangent 

Tangent.

ConstraintTypeCurvature 

Curvature.


Member Function Documentation

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

Parameters:
coneheadDisplay conehead?
profileStringTypeMesh profile string type
skinTypeMesh surface type
stringPointTypeProfile string point type
sectionsSections
editInsertProfileFlag to indicate if this is temporary profile to inserting new string purpose only.
profileMesh profile string

Returns
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Returns
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Get angle alignment points
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Parameters:
point1Point 1
point2Point 2

Get distance alignment vector.

Returns:
Vector
Created in NX4.0.0.

License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
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")

Parameters:
nSidesn sides
facesConsNumber of faces on each side
numCollectorsnum collectors
collectorsConstraints collectors.
numConsTypesnum cons types
consTypestype on each side.

Get end constraints types.

Returns:
Constraint types
Created in NX4.0.0.

License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
Parameters:
constraintSizeconstraint size

Get mesh profile string with provided index.

Returns:
Requested profile data.
Created in NX4.0.0.

License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
Parameters:
indexProfile 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")

Parameters:
stringIndexstring index in profile strings
arrayLengtharray length
alignIndexAlignment indices
alignParamsAlignment parameters
std::vector<double> NXOpen::Features::MeshSurfaceBuilder::GetTolerances ( int  tolLength)

Get tolerances.

Returns:

Created in NX4.0.0.

License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
Parameters:
tolLengthtol length

Get tolerances strings.

Returns:

Created in NX4.0.0.

License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")
Parameters:
tolStrLengthtol str length

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

Parameters:
profileIndexmesh profile string index
orderbefore or after
stringIndexString index in mesh profile string

Create a mesh parameters transient object data.

Returns:
Allocated rebuild data.
Created in NX4.0.0.

License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Construct a new mesh profile string transient object.

Returns:
New mesh profile string.
Created in NX4.0.0.

License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Allocate memory for Mesh type surface rebuild data.

Returns:
Allocated rebuild data.
Created in NX4.0.0.

License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

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

Returns
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Returns
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

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

Parameters:
profileIndexmesh profile string index
stringIndexString index in mesh profile string

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

Parameters:
stringIndexProfile string index.
stringStartCurveNew start curve.

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

Set angle alignment points.

Points will be used to evaluate the alignment angle.
Created in NX4.0.0.

License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Parameters:
point1Point 1
point2Point 2

Set distance alignment vector
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Parameters:
vectorVector
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")

Parameters:
facesConsNumber of faces on all sides
collectorsConstraints collectors.
consTypestype on each side.

Sets
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Parameters:
constraintDirectionconstraint direction

Set end constraints types.


Created in NX4.0.0.

License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Parameters:
constraintTypesConstraint types

Sets
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Parameters:
featureTypefeature type

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

Parameters:
normalToEndSectionsnormal to end sections

Sets
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Parameters:
parametersparameters
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")

Parameters:
stringIndexstring index in profile strings
alignIndexAlignment indices
alignParamsAlignment parameters (normalized)

Sets
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Parameters:
rbDataRebuild data

Sets
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

Parameters:
simplesimple
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")

Parameters:
tolTolerances

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

Parameters:
tolStringTolerances
NOTE: The full Unicode character set is not supported for this parameter.

Returns
Created in NX4.0.0.



License requirements : features_modeling ("FEATURES MODELING"), nx_freeform_1 ("basic freeform modeling")

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


The documentation for this class was generated from the following file:
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.