NX Open C++ Reference Guide
Classes | Public Types | Public Member Functions
NXOpen::Facet::FacetedBodyCollection Class Reference

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...

Inheritance diagram for NXOpen::Facet::FacetedBodyCollection:
NXOpen::TaggedObjectCollection

List of all members.

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::FacetedBodyCopy (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::BestFitAlignBuilderCreateBestFitAlignBuilder ()
 Creates a Facet::BestFitAlignBuilder.
NXOpen::Facet::DecimateFacetBodyBuilderCreateDecimateFacetBodyBuilder ()
 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::CurvatureBuilderCreateFacetCurvatureBuilder ()
 Create a Facet::CurvatureBuilder object.
NXOpen::Facet::FeatureExtractionBuilderCreateFacetFeatureExtractionBuilder ()
 Create a Facet::FeatureExtractionBuilder object.
NXOpen::Facet::FillHoleBuilderCreateFillHoleBuilder ()
 Creates a Facet::FillHoleBuilder.
NXOpen::Facet::MultiPatchAlignmentBuilderCreateMultiPatchAlignmentBuilder ()
 Creates a Facet::MultiPatchAlignmentBuilder.
NXOpen::Facet::SmoothFacetBodyBuilderCreateSmoothFacetBodyBuilder ()
 Creates a Facet::SmoothFacetBodyBuilder.
NXOpen::Facet::SnipFacetBodyBuilderCreateSnipFacetBodyBuilder ()
 Creates a Facet::SnipFacetBodyBuilder.
NXOpen::Facet::STLImportBuilderCreateSTLImportBuilder ()
 Creates a Facet::STLImportBuilder.
NXOpen::Facet::SubdivideFacetBodyBuilderCreateSubdivideFacetBodyBuilder ()
 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::FacetedBodyFindObject (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.

Detailed Description

Represents a collection of faceted bodies in a part
To obtain an instance of this class, refer to Part

Created in NX5.0.0.



Member Enumeration Documentation

Specifies the type of facets created when copying or converting faceted bodies.

Enumerator:
TypeNx 

NX facet.

TypeJt 

JT facet.


Member Function Documentation

Returns an iterator addressing the first element.

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

Parameters:
fromBodyThe faceted body to convert
toFacetTypeTo facet type

Copies a faceted body and optionally changes the internal representation to the given type (This is only valid for JT to NX copy)

Returns:
New body
Created in NX5.0.0.

License requirements : None
Parameters:
fromBodyThe faceted body to copy
toPartPart to create the copy in
toFacetTypeTo facet type

Creates a Facet::BestFitAlignBuilder.

Returns:

Created in NX6.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR nx_freeform_1 ("basic freeform modeling")

Creates a Facet::DecimateFacetBodyBuilder.

Returns:

Created in NX7.5.0.

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

Parameters:
solidBodiessolidbodies
facetBodiesfacetbodies
errorTableerrortable

Create a Facet::CurvatureBuilder object.

Returns:

Created in NX5.0.0.

License requirements : None

Create a Facet::FeatureExtractionBuilder object.

Returns:

Created in NX5.0.0.

License requirements : solid_modeling ("SOLIDS MODELING")

Creates a Facet::FillHoleBuilder.

Returns:

Created in NX6.0.0.

License requirements : None

Creates a Facet::MultiPatchAlignmentBuilder.

Returns:

Created in NX7.5.0.

License requirements : studio_free_form ("STUDIO FREE FORM")

Creates a Facet::SmoothFacetBodyBuilder.

Returns:

Created in NX7.5.0.

License requirements : studio_free_form ("STUDIO FREE FORM")

Creates a Facet::SnipFacetBodyBuilder.

Returns:

Created in NX6.0.0.

License requirements : None

Creates a Facet::STLImportBuilder.

Returns:

Created in NX6.0.0.

License requirements : solid_modeling ("SOLIDS MODELING") OR nx_freeform_1 ("basic freeform modeling")

Creates a Facet::SubdivideFacetBodyBuilder.

Returns:

Created in NX7.5.0.

License requirements : nx_freeform_1 ("basic freeform modeling")

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.

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.

Returns:
Faceted body with this identifier
Created in NX5.0.0.

License requirements : None
Parameters:
journalIdentifierIdentifier 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.

Returns:
Array of loaded associated faceted bodies
Created in NX5.0.0.

License requirements : None
Parameters:
solidBodyThe body for which to get associated faceted bodies
numberOfUnloadedFacetedBodiesThe number of unloaded associated faceted bodies for this solids body

Returns the tag of this object.


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