NX Open C++ Reference Guide
|
Represents a builder to be used to create edge patch surfaces. More...
Public Types | |
enum | PatchStatus { PatchStatusNoLoopExisted, PatchStatusOneLoopExisted, PatchStatusMultiLoopsExisted, PatchStatusSomeLoopsExisted, PatchStatusLoopNotPatched, PatchStatusPatchedAndSomeSuppressed, PatchStatusPatchedAndAllSuppressed, PatchStatusPatchedAndNoSuppressed } |
Settings of the patch status types. More... | |
enum | SelectTypes { SelectTypesFace, SelectTypesBody, SelectTypesTraverse } |
Settings of the selection types. More... | |
Public Member Functions | |
bool | AllowPatch () |
Returns the flag indicating if creating copies for patch surface is allowed. More... | |
NXOpen::SelectBody * | Body () |
Returns the body to use to search for loops. More... | |
NXOpen::NXColor * | BodyColor () |
Returns the patch body color. More... | |
void | ClearList (int type) |
Clear the index list. More... | |
void | DeleteOneLoopList (int index) |
Delete one loop list of the index. More... | |
void | DestroyMemory () |
Destroy the builder memory. More... | |
void | DirectionReverse () |
Reverse reference face direction. More... | |
void | EditReferenceFace (int index, const std::vector< NXOpen::Face * > &addFaces, const std::vector< NXOpen::Face * > &removeFaces) |
Add or remove reference faces. More... | |
NXOpen::ScCollector * | Face () |
Returns the face to use to search for loops. More... | |
void | FindBodyHoles (NXOpen::Body *body) |
Find holes on the input body. More... | |
NXOpen::Tooling::EdgePatchBuilder::PatchStatus | FindEdgesPatch (const std::vector< NXOpen::NXObject * > &edges) |
Get hole information of input edges. More... | |
NXOpen::Tooling::EdgePatchBuilder::PatchStatus | FindFaceHoles (NXOpen::Face *referFaces) |
Find holes on the input faces. More... | |
void | GetBodyColor (double *redValue, double *greenValue, double *blueValue) |
Returns the body color. More... | |
NXOpen::ScCollector * | Loops () |
Returns the loops to patch. More... | |
void | MakeMoldWizardFills (double tolerance, const std::vector< NXOpen::NXObject * > &edges, const std::vector< NXOpen::Face * > &origFaces) |
Create a mold wizard fill. More... | |
bool | PatchSurface () |
Returns the indication to create patch surface bodies in core/cavity. More... | |
NXOpen::ScCollector * | ReferenceFace () |
Returns the reference face to use to create edge patch. More... | |
NXOpen::Tooling::EdgePatchBuilder::SelectTypes | SelType () |
Returns the patch type of the edge patch creation. More... | |
void | SetAllowPatch (bool patch) |
Sets the flag indicating if creating copies for patch surface is allowed. More... | |
void | SetBodyColor (NXOpen::NXColor *patchColor) |
Sets the patch body color. More... | |
void | SetBodyColor (double redValue, double greenValue, double blueValue) |
Sets the body color. More... | |
void | SetDeletedList (const std::vector< int > &items) |
Set deleted list value. More... | |
void | SetGiveFailedMessage (int giveMessage) |
Set the giving failed message value. More... | |
void | SetPatchSurface (bool patchSurface) |
Sets the indication to create patch surface bodies in core/cavity. More... | |
void | SetSelectedItems (const std::vector< int > &selectedItems) |
Set the selected items index value. More... | |
void | SetSelType (NXOpen::Tooling::EdgePatchBuilder::SelectTypes selType) |
Sets the patch type of the edge patch creation. More... | |
void | SetTolerance (double tolerance) |
Set the tolerance value. More... | |
Public Member Functions inherited from NXOpen::Builder | |
NXOpen::NXObject * | Commit () |
Commits any edits that have been applied to the builder. More... | |
void | Destroy () |
Deletes the builder, and cleans up any objects created by the builder. More... | |
std::vector< NXOpen::NXObject * > | GetCommittedObjects () |
For builders that create more than one object, this method returns the objects that are created by commit. More... | |
NXOpen::NXObject * | GetObject () |
Returns the object currently being edited by this builder. More... | |
void | ShowResults () |
Updates the model to reflect the result of an edit to the model for all builders that support showing results. More... | |
virtual bool | Validate () |
Validate whether the inputs to the component are sufficient for commit to be called. More... | |
Public Member Functions inherited from NXOpen::TaggedObject | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Represents a builder to be used to create edge patch surfaces.
To create a new instance of this class, use NXOpen::Tooling::EdgePatchCollection::CreateBuilder
Default values.
Property | Value |
---|---|
PatchSurface |
1 |
SelType |
Face |
Created in NX7.5.0.
Settings of the patch status types.
bool NXOpen::Tooling::EdgePatchBuilder::AllowPatch | ( | ) |
Returns the flag indicating if creating copies for patch surface is allowed.
Created in NX7.5.3.
License requirements : None
NXOpen::SelectBody* NXOpen::Tooling::EdgePatchBuilder::Body | ( | ) |
Returns the body to use to search for loops.
Created in NX7.5.0.
License requirements : None
NXOpen::NXColor* NXOpen::Tooling::EdgePatchBuilder::BodyColor | ( | ) |
Returns the patch body color.
Created in NX7.5.5.
License requirements : None
void NXOpen::Tooling::EdgePatchBuilder::ClearList | ( | int | type | ) |
Clear the index list.
Created in NX7.5.0.
License requirements : None
type | indicating which index list to clear |
void NXOpen::Tooling::EdgePatchBuilder::DeleteOneLoopList | ( | int | index | ) |
Delete one loop list of the index.
Created in NX7.5.0.
License requirements : None
index | the index value |
void NXOpen::Tooling::EdgePatchBuilder::DestroyMemory | ( | ) |
Destroy the builder memory.
Created in NX7.5.0.
License requirements : None
void NXOpen::Tooling::EdgePatchBuilder::DirectionReverse | ( | ) |
Reverse reference face direction.
Created in NX7.5.0.
License requirements : None
void NXOpen::Tooling::EdgePatchBuilder::EditReferenceFace | ( | int | index, |
const std::vector< NXOpen::Face * > & | addFaces, | ||
const std::vector< NXOpen::Face * > & | removeFaces | ||
) |
Add or remove reference faces.
Created in NX7.5.0.
License requirements : None
index | the index of list loop |
addFaces | The faces to add to reference faces |
removeFaces | The faces to remove from reference faces |
NXOpen::ScCollector* NXOpen::Tooling::EdgePatchBuilder::Face | ( | ) |
Returns the face to use to search for loops.
Created in NX7.5.0.
License requirements : None
void NXOpen::Tooling::EdgePatchBuilder::FindBodyHoles | ( | NXOpen::Body * | body | ) |
Find holes on the input body.
Created in NX7.5.0.
License requirements : None
body | the body to find holes on which |
NXOpen::Tooling::EdgePatchBuilder::PatchStatus NXOpen::Tooling::EdgePatchBuilder::FindEdgesPatch | ( | const std::vector< NXOpen::NXObject * > & | edges | ) |
Get hole information of input edges.
edges | the edges or curves to find holes information |
NXOpen::Tooling::EdgePatchBuilder::PatchStatus NXOpen::Tooling::EdgePatchBuilder::FindFaceHoles | ( | NXOpen::Face * | referFaces | ) |
Find holes on the input faces.
referFaces | the faces to find holes |
void NXOpen::Tooling::EdgePatchBuilder::GetBodyColor | ( | double * | redValue, |
double * | greenValue, | ||
double * | blueValue | ||
) |
Returns the body color.
Created in NX7.5.0.
License requirements : None
redValue | red value between 0 and 1 |
greenValue | green value between 0 and 1 |
blueValue | blue value between 0 and 1 |
NXOpen::ScCollector* NXOpen::Tooling::EdgePatchBuilder::Loops | ( | ) |
Returns the loops to patch.
Created in NX7.5.0.
License requirements : None
void NXOpen::Tooling::EdgePatchBuilder::MakeMoldWizardFills | ( | double | tolerance, |
const std::vector< NXOpen::NXObject * > & | edges, | ||
const std::vector< NXOpen::Face * > & | origFaces | ||
) |
Create a mold wizard fill.
Created in NX9.0.1.
License requirements : None
tolerance | distance tolerance |
edges | ordered edges array |
origFaces | selected faces array |
bool NXOpen::Tooling::EdgePatchBuilder::PatchSurface | ( | ) |
Returns the indication to create patch surface bodies in core/cavity.
Created in NX7.5.0.
License requirements : None
NXOpen::ScCollector* NXOpen::Tooling::EdgePatchBuilder::ReferenceFace | ( | ) |
Returns the reference face to use to create edge patch.
Created in NX7.5.0.
License requirements : None
NXOpen::Tooling::EdgePatchBuilder::SelectTypes NXOpen::Tooling::EdgePatchBuilder::SelType | ( | ) |
Returns the patch type of the edge patch creation.
Created in NX7.5.0.
License requirements : None
void NXOpen::Tooling::EdgePatchBuilder::SetAllowPatch | ( | bool | patch | ) |
Sets the flag indicating if creating copies for patch surface is allowed.
Created in NX7.5.3.
License requirements : None
patch | patch |
void NXOpen::Tooling::EdgePatchBuilder::SetBodyColor | ( | NXOpen::NXColor * | patchColor | ) |
Sets the patch body color.
Created in NX7.5.5.
License requirements : None
patchColor | the color index |
void NXOpen::Tooling::EdgePatchBuilder::SetBodyColor | ( | double | redValue, |
double | greenValue, | ||
double | blueValue | ||
) |
Sets the body color.
Created in NX7.5.0.
License requirements : None
redValue | red value between 0 and 1 |
greenValue | green value between 0 and 1 |
blueValue | blue value between 0 and 1 |
void NXOpen::Tooling::EdgePatchBuilder::SetDeletedList | ( | const std::vector< int > & | items | ) |
Set deleted list value.
Created in NX7.5.0.
License requirements : None
items | the deleted index values |
void NXOpen::Tooling::EdgePatchBuilder::SetGiveFailedMessage | ( | int | giveMessage | ) |
Set the giving failed message value.
Created in NX7.5.0.
License requirements : None
giveMessage | the giving failed message value |
void NXOpen::Tooling::EdgePatchBuilder::SetPatchSurface | ( | bool | patchSurface | ) |
Sets the indication to create patch surface bodies in core/cavity.
Created in NX7.5.0.
License requirements : None
patchSurface | patchsurface |
void NXOpen::Tooling::EdgePatchBuilder::SetSelectedItems | ( | const std::vector< int > & | selectedItems | ) |
Set the selected items index value.
Created in NX7.5.0.
License requirements : None
selectedItems | the selected index values |
void NXOpen::Tooling::EdgePatchBuilder::SetSelType | ( | NXOpen::Tooling::EdgePatchBuilder::SelectTypes | selType | ) |
Sets the patch type of the edge patch creation.
Created in NX7.5.0.
License requirements : None
selType | seltype |
void NXOpen::Tooling::EdgePatchBuilder::SetTolerance | ( | double | tolerance | ) |
Set the tolerance value.
Created in NX7.5.0.
License requirements : None
tolerance | the tolerance value |