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
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.
|
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 |
setRadius(float radius)
Sets the bevel radius.
|
apply, apply, clearApplyResult, forwardTraversal, getContinueActionInBranchFlag, getCurPath, getDistribMode, 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, getNativeResourceHandle
public void enableAbsoluteRadius()
public void enableCoplanarTest()
public void enableDuplicateTest()
public void enableOrderingTest()
public float getAngle()
public void setRadius(float radius)
public float getRadius()
public static void enableElement(java.lang.Class<? extends Inventor> t, int stkIndex)
public void setAngle(float angle)
public void enableAbsoluteRadius(boolean flag)
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 SoGroup getSceneGraph()
public void enableOrderingTest(boolean flag)
public boolean isCoplanarTestEnabled()
public boolean isAbsoluteRadiusEnabled()
public boolean isOrderingTestEnabled()
public boolean isDuplicateTestEnabled()
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com