public class SoBevelAction extends SoAction
SoCoordinate3
and SoIndexedFaceSet
nodes). Typically it is applied to a subgraph that contains only a single shape.
SoBevelAction
does not take into consideration PER_FACE or PER_VERTEX materials. Therefore, the shapes to be beveled should have a uniform material (SoMaterialBinding.OVERALL
).
It works like other actions, but does not modify the source scene graph. The scene graph containing beveled shapes can be accessed by calling getSceneGraph()
after applying the action.
The methods setAngle()
, setRadius()
, and enableAbsoluteRadius()
set the default behavior of the beveling of the shapes this action will be applied to. If bevel property values have been set by the SoBevelProperty
node, they are used. Otherwise, the values set by these methods are used.
See also:
SoAction.AppliedCodes, SoAction.DistribModes, SoAction.PathCodes, SoAction.PathIndices
Inventor.ConstructorCommand
ALL, BELOW_PATH, CLUSTER_ONLY, IN_PATH, LOCAL_ONLY, NO_PATH, NODE, OFF_PATH, PATH, PATH_LIST
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoBevelAction()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
enableAbsoluteRadius()
Calls enableAbsoluteRadius(true).
|
void |
enableAbsoluteRadius(boolean flag)
Sets the absolute radius flag.
|
void |
enableCoplanarTest()
Calls enableCoplanarTest(true).
|
void |
enableCoplanarTest(boolean flag)
If true, a coplanar test is performed on each shape before beveling it.
|
void |
enableDuplicateTest()
Calls enableDuplicateTest(true).
|
void |
enableDuplicateTest(boolean flag)
If true, examine each shape to bevel, removing duplicate faces if found.
|
static void |
enableElement(java.lang.Class<? extends Inventor> t,
int stkIndex) |
void |
enableOrderingTest()
Calls enableOrderingTest(true).
|
void |
enableOrderingTest(boolean flag)
If true, each shape to bevel is re-ordered so that each face is oriented like the first face of the shape.
|
float |
getAngle()
Returns the minimum angle (in radians) between two adjacent face normals required to bevel the edge common to these two faces.
|
float |
getRadius()
Returns the bevel radius.
|
SoGroup |
getSceneGraph()
This method returns the scene graph containing the beveled shapes created by the action.
|
boolean |
isAbsoluteRadiusEnabled()
Returns true if the radius is absolute, false if it is relative to the shape.
|
boolean |
isCoplanarTestEnabled()
Returns true if a coplanar test is performed before the beveling.
|
boolean |
isDuplicateTestEnabled()
If true, a test is performed to remove duplicate faces in the shapes being beveled.
|
boolean |
isOrderingTestEnabled()
Returns true if the shapes are re-ordered before being beveled.
|
boolean |
isOutputVRML()
Deprecated.
As of Open Inventor 9500 See documentation for more details
|
void |
setAngle(float angle)
Sets the minimum angle (in radians) between two adjacent face normals required to bevel the edge common to these two faces.
|
void |
setOutputVRML()
Deprecated.
|
void |
setOutputVRML(boolean flag)
Deprecated.
As of Open Inventor 9500 See documentation for more details
|
void |
setRadius(float radius)
Sets the bevel radius.
|
apply, apply, clearApplyResult, forwardTraversal, getContinueActionInBranchFlag, getCurPath, getNodeAppliedTo, getOriginalPathListAppliedTo, getPathAppliedTo, getPathCode, getPathListAppliedTo, getPipeId, getSceneManager, getState, getWhatAppliedTo, hasTerminated, invalidateState, isBeingApplied, isLastPathListAppliedTo, isUsingAlternateRep, nullAction, postDelayedTraversal, preDelayedTraversal, resetContinueActionInBranchFlag, setPipeId, setSceneManager, setUpState, stopActionInBranch, traverse, useAlternateRep
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public void enableOrderingTest()
public void enableAbsoluteRadius()
public void enableDuplicateTest()
public void enableCoplanarTest()
@Deprecated public void setOutputVRML()
public void setAngle(float angle)
public float getAngle()
public static void enableElement(java.lang.Class<? extends Inventor> t, int stkIndex)
public SoGroup getSceneGraph()
@Deprecated public boolean isOutputVRML()
public void setRadius(float radius)
public boolean isDuplicateTestEnabled()
public boolean isCoplanarTestEnabled()
public boolean isOrderingTestEnabled()
public void enableDuplicateTest(boolean flag)
public void enableCoplanarTest(boolean flag)
If false, each shape is assumed not to have contiguous coplanar faces. This provides better performance because the coplanar test is not performed.
It is recommended that you turn off this test only if the shapes to be beveled do not contain contiguous coplanar faces. Default value is true.
public void enableAbsoluteRadius(boolean flag)
public float getRadius()
public boolean isAbsoluteRadiusEnabled()
@Deprecated public void setOutputVRML(boolean flag)
public void enableOrderingTest(boolean flag)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com