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... | |
Represents a collection of faceted bodies in a part
To obtain an instance of this class, refer to Part
Created in NX5.0.0.
iterator NXOpen::Facet::FacetedBodyCollection::begin | ( | ) |
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)
@return New body
Created in NX5.0.0.
License requirements : None
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::BridgeFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateBridgeFacetBodyBuilder | ( | ) |
Creates a Facet::BridgeFacetBodyBuilder.
NXOpen::Facet::DecimateFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateDecimateFacetBodyBuilder | ( | ) |
Creates a Facet::DecimateFacetBodyBuilder.
NXOpen::Facet::ExtrudeFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateExtrudeFacetBodyBuilder | ( | ) |
Creates a Facet::ExtrudeFacetBodyBuilder.
NXOpen::Facet::ExtrudeProfileBuilder* NXOpen::Facet::FacetedBodyCollection::CreateExtrudeProfileBuilder | ( | ) |
Creates a Facet::ExtrudeProfileBuilder.
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 default faceting tolerances.
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 @link Body::GetFacetedBody Body::GetFacetedBody@endlink for ways to check for this situation.
Created in NX7.5.5.
License requirements : adv_assemblies ("ADVANCED ASSEMBLIES")
solidBodies | solidbodies |
facetBodies | facetbodies |
errorTable | errortable |
void NXOpen::Facet::FacetedBodyCollection::CreateFacetBodyFromFaces | ( | const std::vector< NXOpen::Face * > & | solidFaces, |
std::vector< NXOpen::Facet::FacetedBody * > & | facetBodies, | ||
std::vector< int > & | errorTable | ||
) |
Creates a JT Facet::FacetedBody using the default faceting tolerances.
The output facetBodies and errorTable arrays are the same size as the input nSolidFaces. 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 @link Body::GetFacetedBody Body::GetFacetedBody@endlink for ways to check for this situation.
Created in NX8.5.0.
License requirements : adv_assemblies ("ADVANCED ASSEMBLIES")
solidFaces | solidfaces |
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.
NXOpen::Facet::FillHoleBuilder* NXOpen::Facet::FacetedBodyCollection::CreateFillHoleBuilder | ( | ) |
Creates a Facet::FillHoleBuilder.
NXOpen::Facet::MergeFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateMergeFacetBodyBuilder | ( | ) |
Creates a Facet::MergeFacetBodyBuilder.
NXOpen::Facet::MultiPatchAlignmentBuilder* NXOpen::Facet::FacetedBodyCollection::CreateMultiPatchAlignmentBuilder | ( | ) |
Creates a Facet::MultiPatchAlignmentBuilder.
NXOpen::Facet::SewFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateSewFacetBodyBuilder | ( | ) |
Creates a Facet::SewFacetBodyBuilder.
NXOpen::Facet::SmoothFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateSmoothFacetBodyBuilder | ( | ) |
Creates a Facet::SmoothFacetBodyBuilder.
NXOpen::Facet::SnipFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateSnipFacetBodyBuilder | ( | ) |
Creates a Facet::SnipFacetBodyBuilder.
NXOpen::Facet::STLImportBuilder* NXOpen::Facet::FacetedBodyCollection::CreateSTLImportBuilder | ( | ) |
Creates a Facet::STLImportBuilder.
NXOpen::Facet::SubdivideFacetBodyBuilder* NXOpen::Facet::FacetedBodyCollection::CreateSubdivideFacetBodyBuilder | ( | ) |
Creates a Facet::SubdivideFacetBodyBuilder.
void NXOpen::Facet::FacetedBodyCollection::DeleteTemporaryFacesAndEdges | ( | ) |
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
iterator NXOpen::Facet::FacetedBodyCollection::end | ( | ) |
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. @return Faceted body with this identifier
Created in NX5.0.0.
License requirements : None
journalIdentifier | Identifier of the faceted body you want |
NXOpen::Facet::FacetedBody* NXOpen::Facet::FacetedBodyCollection::FindObject | ( | const char * | 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. @return Faceted body with this identifier
Created in NX5.0.0.
License requirements : None
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. @return Array of loaded associated faceted bodies
Created in NX5.0.0.
License requirements : None
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.