NX Open C++ Reference Guide
|
Represents a collection of faceted bodies in a part
To obtain an instance of this class, refer to Part
Created in NX5.0.0.
More...
Classes | |
class | iterator |
Iterator for accessing the contents of the collection. More... | |
Public Types | |
enum | Type { TypeNx, TypeJt } |
Specifies the type of facets created when copying or converting faceted bodies. More... | |
Public Member Functions | |
iterator | begin () |
Returns an iterator addressing the first element. | |
void | Convert (NXOpen::Facet::FacetedBody *fromBody, NXOpen::Facet::FacetedBodyCollection::Type toFacetType) |
Converts the internal representation of this faceted body to the specified type. | |
NXOpen::Facet::FacetedBody * | Copy (NXOpen::Facet::FacetedBody *fromBody, NXOpen::Part *toPart, NXOpen::Facet::FacetedBodyCollection::Type toFacetType) |
Copies a faceted body and optionally changes the internal representation to the given type (This is only valid for JT to NX copy) | |
NXOpen::Facet::BestFitAlignBuilder * | CreateBestFitAlignBuilder () |
Creates a Facet::BestFitAlignBuilder. | |
NXOpen::Facet::DecimateFacetBodyBuilder * | CreateDecimateFacetBodyBuilder () |
Creates a Facet::DecimateFacetBodyBuilder. | |
void | CreateFacetBody (const std::vector< NXOpen::Body * > &solidBodies, std::vector< NXOpen::Facet::FacetedBody * > &facetBodies, std::vector< int > &errorTable) |
Creates a JT Facet::FacetedBody using the faceting tolerances specified for the NX session. | |
NXOpen::Facet::CurvatureBuilder * | CreateFacetCurvatureBuilder () |
Create a Facet::CurvatureBuilder object. | |
NXOpen::Facet::FeatureExtractionBuilder * | CreateFacetFeatureExtractionBuilder () |
Create a Facet::FeatureExtractionBuilder object. | |
NXOpen::Facet::FillHoleBuilder * | CreateFillHoleBuilder () |
Creates a Facet::FillHoleBuilder. | |
NXOpen::Facet::MultiPatchAlignmentBuilder * | CreateMultiPatchAlignmentBuilder () |
Creates a Facet::MultiPatchAlignmentBuilder. | |
NXOpen::Facet::SmoothFacetBodyBuilder * | CreateSmoothFacetBodyBuilder () |
Creates a Facet::SmoothFacetBodyBuilder. | |
NXOpen::Facet::SnipFacetBodyBuilder * | CreateSnipFacetBodyBuilder () |
Creates a Facet::SnipFacetBodyBuilder. | |
NXOpen::Facet::STLImportBuilder * | CreateSTLImportBuilder () |
Creates a Facet::STLImportBuilder. | |
NXOpen::Facet::SubdivideFacetBodyBuilder * | CreateSubdivideFacetBodyBuilder () |
Creates a Facet::SubdivideFacetBodyBuilder. | |
void | DeleteTemporaryFacesAndEdges () |
Delete any temporary faces and edges on faceted bodies that may have been created in the specified part. | |
iterator | end () |
Returns an iterator addressing one past the last element. | |
NXOpen::Facet::FacetedBody * | FindObject (const NXString &journalIdentifier) |
Finds the Facet::FacetedBody with the given identifier as recorded in a journal. | |
std::vector < NXOpen::Facet::FacetedBody * > | GetAssociatedFacetedBodies (NXOpen::Body *solidBody, int *numberOfUnloadedFacetedBodies) |
Returns the loaded solid bodies associated with the argument faceted body. | |
tag_t | Tag () const |
Returns the tag of this object. |
Represents a collection of faceted bodies in a part
To obtain an instance of this class, refer to Part
Created in NX5.0.0.
Returns an iterator addressing the first element.
void NXOpen::Facet::FacetedBodyCollection::Convert | ( | NXOpen::Facet::FacetedBody * | fromBody, |
NXOpen::Facet::FacetedBodyCollection::Type | toFacetType | ||
) |
Converts the internal representation of this faceted body to the specified type.
This does not create a new body
Created in NX5.0.0.
License requirements : None
fromBody | The faceted body to convert |
toFacetType | To facet type |
NXOpen::Facet::FacetedBody* NXOpen::Facet::FacetedBodyCollection::Copy | ( | NXOpen::Facet::FacetedBody * | fromBody, |
NXOpen::Part * | toPart, | ||
NXOpen::Facet::FacetedBodyCollection::Type | toFacetType | ||
) |
Copies a faceted body and optionally changes the internal representation to the given type (This is only valid for JT to NX copy)
fromBody | The faceted body to copy |
toPart | Part to create the copy in |
toFacetType | To facet type |
NXOpen::Facet::BestFitAlignBuilder* NXOpen::Facet::FacetedBodyCollection::CreateBestFitAlignBuilder | ( | ) |
Creates a Facet::BestFitAlignBuilder.
NXOpen::Facet::DecimateFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateDecimateFacetBodyBuilder | ( | ) |
Creates a Facet::DecimateFacetBodyBuilder.
void NXOpen::Facet::FacetedBodyCollection::CreateFacetBody | ( | const std::vector< NXOpen::Body * > & | solidBodies, |
std::vector< NXOpen::Facet::FacetedBody * > & | facetBodies, | ||
std::vector< int > & | errorTable | ||
) |
Creates a JT Facet::FacetedBody using the faceting tolerances specified for the NX session.
The output facetBodies and errorTable arrays are the same size as the input nSolidBodies. The errorTable array provides information about any errors encountered when faceting bodies. Note that it is possible that faceted bodies with 0 facets are created (and returned in the facetBodies parameter). For this case, the errorTable will contain the UF_FACET_err_zero_facets_produced error. If there is an existing facet body it will get refaceted with the previous tolerance used to tessellate it . See Body::GetFacetedBody for ways to check for this situation.
Created in NX7.5.5.
License requirements : adv_assemblies ("ADVANCED ASSEMBLIES")
solidBodies | solidbodies |
facetBodies | facetbodies |
errorTable | errortable |
NXOpen::Facet::CurvatureBuilder* NXOpen::Facet::FacetedBodyCollection::CreateFacetCurvatureBuilder | ( | ) |
Create a Facet::CurvatureBuilder object.
NXOpen::Facet::FeatureExtractionBuilder* NXOpen::Facet::FacetedBodyCollection::CreateFacetFeatureExtractionBuilder | ( | ) |
Create a Facet::FeatureExtractionBuilder object.
Creates a Facet::FillHoleBuilder.
NXOpen::Facet::MultiPatchAlignmentBuilder* NXOpen::Facet::FacetedBodyCollection::CreateMultiPatchAlignmentBuilder | ( | ) |
Creates a Facet::MultiPatchAlignmentBuilder.
NXOpen::Facet::SmoothFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateSmoothFacetBodyBuilder | ( | ) |
Creates a Facet::SmoothFacetBodyBuilder.
NXOpen::Facet::SnipFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateSnipFacetBodyBuilder | ( | ) |
Creates a Facet::SnipFacetBodyBuilder.
Creates a Facet::STLImportBuilder.
NXOpen::Facet::SubdivideFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateSubdivideFacetBodyBuilder | ( | ) |
Creates a Facet::SubdivideFacetBodyBuilder.
Delete any temporary faces and edges on faceted bodies that may have been created in the specified part.
Please note that this call will invoke an Update operation.
Created in NX5.0.2.
License requirements : None
Returns an iterator addressing one past the last element.
NXOpen::Facet::FacetedBody* NXOpen::Facet::FacetedBodyCollection::FindObject | ( | const NXString & | journalIdentifier | ) |
Finds the Facet::FacetedBody with the given identifier as recorded in a journal.
An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals.
An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier | Identifier of the faceted body you want |
std::vector<NXOpen::Facet::FacetedBody *> NXOpen::Facet::FacetedBodyCollection::GetAssociatedFacetedBodies | ( | NXOpen::Body * | solidBody, |
int * | numberOfUnloadedFacetedBodies | ||
) |
Returns the loaded solid bodies associated with the argument faceted body.
Also returns the number of unloaded associated faceted bodies.
solidBody | The body for which to get associated faceted bodies |
numberOfUnloadedFacetedBodies | The number of unloaded associated faceted bodies for this solids body |
tag_t NXOpen::Facet::FacetedBodyCollection::Tag | ( | ) | const |
Returns the tag of this object.