public interface SimpleInterference extends Builder
SimpleInterference
object
takes two solid bodies as inputs and the type of interference results to
be produced. It can report the first pair of interfering faces between
two solids or all pairs of interfering faces. It can also
create the interference solid(s) between two bodies.
AnalysisManager.createSimpleInterferenceObject()
Modifier and Type | Interface and Description |
---|---|
static class |
SimpleInterference.FaceInterferenceMethod
Specifies to "find only first pair of interfering faces" or "all
pairs of interfering faces" between the input boides.
|
static class |
SimpleInterference.InterferenceMethod
Specifies interference method, i.e., to highlight interfering
faces or create interference solid
|
static class |
SimpleInterference.Result
Specifies the result of a simple interference check
|
Modifier and Type | Method and Description |
---|---|
SimpleInterference.FaceInterferenceMethod |
faceInterferenceType()
Returns the FaceInterferenceType.
|
SelectObject |
firstBody()
Returns the First Body
License requirements: None. |
NXObject[] |
getInterferenceResults()
Returns the pair(s) of interfering faces or solid(s) of interference
between the input bodies. nObjects will be 0 if there is no face or
solid interference between the input bodies.
|
boolean |
highlightNextPair()
Highlights the pairs of interfering faces after a
performCheck() . |
SimpleInterference.InterferenceMethod |
interferenceType()
Returns the InterferenceType.
|
SimpleInterference.Result |
performCheck()
Perform Interference Check.
|
void |
reset()
Frees up resources/results associated with
SimpleInterference object after a
call to performCheck() . |
SelectObject |
secondBody()
Returns the Second Body
License requirements: None. |
void |
setFaceInterferenceType(SimpleInterference.FaceInterferenceMethod faceInterferenceType)
License requirements: None. |
void |
setInterferenceType(SimpleInterference.InterferenceMethod interferenceType)
License requirements: None. |
commit, destroy, getCommittedObjects, getObject, showResults
printTestData, printTestData, tag, tagValue
validate
SelectObject firstBody() throws NXException, RemoteException
NXException
RemoteException
SelectObject secondBody() throws NXException, RemoteException
NXException
RemoteException
SimpleInterference.InterferenceMethod interferenceType() throws NXException, RemoteException
SimpleInterference.InterferenceMethod.INTERFERING_FACES
for
interferenceType()
and setInterferenceType(nxopen.geometricanalysis.SimpleInterference.InterferenceMethod)
reports
the pairs of interfering faces between two solids. You can also
further specify to report only the first pair of interfering faces or
all pairs of interfering faces by
faceInterferenceType()
and setFaceInterferenceType(nxopen.geometricanalysis.SimpleInterference.FaceInterferenceMethod)
. A value of
SimpleInterference.InterferenceMethod.INTERFERENCE_SOLID
for
interferenceType()
and setInterferenceType(nxopen.geometricanalysis.SimpleInterference.InterferenceMethod)
creates the
interference solid(s) between the two input bodies.
NXException
RemoteException
void setInterferenceType(SimpleInterference.InterferenceMethod interferenceType) throws NXException, RemoteException
interferenceType
- NXException
RemoteException
SimpleInterference.FaceInterferenceMethod faceInterferenceType() throws NXException, RemoteException
faceInterferenceType()
and setFaceInterferenceType(nxopen.geometricanalysis.SimpleInterference.FaceInterferenceMethod)
is used when
interferenceType()
and setInterferenceType(nxopen.geometricanalysis.SimpleInterference.InterferenceMethod)
is set to
SimpleInterference.InterferenceMethod.INTERFERING_FACES
,
i.e., create pair(s) of interfering faces between two solids. A
value of SimpleInterference.FaceInterferenceMethod.FIRST_PAIR_ONLY
for faceInterferenceType()
and setFaceInterferenceType(nxopen.geometricanalysis.SimpleInterference.FaceInterferenceMethod)
reports only the first
pair of interfering faces and value of
SimpleInterference.FaceInterferenceMethod.ALL_PAIRS
reports all pairs of interfering faces between two bodies.
NXException
RemoteException
void setFaceInterferenceType(SimpleInterference.FaceInterferenceMethod faceInterferenceType) throws NXException, RemoteException
faceInterferenceType
- NXException
RemoteException
SimpleInterference.Result performCheck() throws NXException, RemoteException
performCheck()
should be called after specifiying input bodies to be checked, i.e.,
firstBody()
and secondBody()
.
The return value SimpleInterference.Result
specifies the type of
interference existing between the input bodies. Use
getInterferenceResults()
to obtain the interfering faces
or solid(s) of interference between the input bodis.
NXException
RemoteException
boolean highlightNextPair() throws NXException, RemoteException
performCheck()
. This method is applicable only
when interferenceType()
and setInterferenceType(nxopen.geometricanalysis.SimpleInterference.InterferenceMethod)
is set to
SimpleInterference.InterferenceMethod.INTERFERING_FACES
and
faceInterferenceType()
and setFaceInterferenceType(nxopen.geometricanalysis.SimpleInterference.FaceInterferenceMethod)
is set to
SimpleInterference.FaceInterferenceMethod.ALL_PAIRS
. When
highlighting the next pair, current pair of faces is
unhighlighted. Return value is set to true if there are more
pairs of faces to be highlighted. If the last pair is reached
(i.e., the pair being highlighted in this call is the last pair
of faces), return value is set to false.
NXException
RemoteException
NXObject[] getInterferenceResults() throws NXException, RemoteException
interferenceType()
and setInterferenceType(nxopen.geometricanalysis.SimpleInterference.InterferenceMethod)
is
SimpleInterference.InterferenceMethod.INTERFERING_FACES
, pair(s) of
interfering faces are returned. The first two objects represent the first pair of
interfering faces, and next two objects represent the second pair
of interering faces and so on. If the
faceInterferenceType()
and setFaceInterferenceType(nxopen.geometricanalysis.SimpleInterference.FaceInterferenceMethod)
is
SimpleInterference.FaceInterferenceMethod.FIRST_PAIR_ONLY
,
only the first pair of interfering faces are returned.
NXException
RemoteException
void reset() throws NXException, RemoteException
SimpleInterference
object after a
call to performCheck()
.
performCheck()
is followed by
getInterferenceResults()
and the
reset()
.
NXException
RemoteException
Copyright 2016 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.