public class SbExtrusionGenerator extends Inventor
createFrom2DPoints()
methods) The generated shape is closed and contains only triangles in CCW order.
LIMITATIONS
NOTES
Inventor.ConstructorCommand
VERBOSE_LEVEL, ZeroHandle
Modifier and Type | Method and Description |
---|---|
static SoShape |
createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam,
SbMatrix localToCam)
Calls createFrom2DPoints(pointsInCam, localToCam, new com.openinventor.inventor.SbBox3f()).
|
static SoShape |
createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam,
SbMatrix camToLocal,
float zMin)
Calls createFrom2DPoints(pointsInCam, camToLocal, zMin, (float)1.0f).
|
static SoShape |
createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam,
SbMatrix camToLocal,
float zMin,
float zMax)
Create an extruded shape from points in camera space.
|
static SoShape |
createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam,
SbMatrix localToCam,
SbBox3f bboxInLocal)
Create an extruded shape from points in camera space.
|
static SoShape |
createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam,
SoPath nodePath,
SbViewVolume volume)
Calls createFrom2DPoints(pointsInCam, nodePath, volume, new com.openinventor.inventor.SbBox3f()).
|
static SoShape |
createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam,
SoPath nodePath,
SbViewVolume volume,
SbBox3f bboxInLocal)
Create an extruded shape from points in camera space.
|
static SoShape |
createFrom3DPoints(java.util.Collection<SbVec3f> pointsInWorld,
SoPath nodePath,
SbViewVolume volume)
Calls createFrom3DPoints(pointsInWorld, nodePath, volume, new com.openinventor.inventor.SbBox3f()).
|
static SoShape |
createFrom3DPoints(java.util.Collection<SbVec3f> pointsInWorld,
SoPath nodePath,
SbViewVolume volume,
SbBox3f bboxInLocal)
Create an extruded shape from points in world space.
|
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
public static SoShape createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam, SbMatrix localToCam)
public static SoShape createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam, SoPath nodePath, SbViewVolume volume)
public static SoShape createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam, SbMatrix camToLocal, float zMin)
public static SoShape createFrom3DPoints(java.util.Collection<SbVec3f> pointsInWorld, SoPath nodePath, SbViewVolume volume)
public static SoShape createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam, SbMatrix camToLocal, float zMin, float zMax)
pointsInCam
- Polyline in normalized screen space ([-1, 1]x[-1, 1]).
camToLocal
- Transform matrix from camera space to local space (modelViewProjInv matrix)
zMin
- Min extrusion plane, in camera space. By default, it's the camera's near clip plane.
zMax
- Max extrusion plane, in camera space. By default, it's the camera's far clip plane.
Warning Return NULL if error occurred.
public static SoShape createFrom3DPoints(java.util.Collection<SbVec3f> pointsInWorld, SoPath nodePath, SbViewVolume volume, SbBox3f bboxInLocal)
pointsInWorld
- Polyline in world space.
nodePath
- Path from root to the node space in which the generated shape will be expressed. Generally, the separator which will contain the shape. If NULL, the shape will be expressed in world space.
volume
- View volume corresponding to the camera in which the points were taken.
bboxInLocal
- Bounding box that specifies limits of extruded shape, expressed in local space. If not specified, the shape will be extruded between the camera near and far planes.
Warning Return NULL if error occurred.
public static SoShape createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam, SoPath nodePath, SbViewVolume volume, SbBox3f bboxInLocal)
pointsInCam
- Polyline in normalized screen space ([-1, 1]x[-1, 1]).
nodePath
- Path from root to the node space in which the generated shape will be expressed. Generally, the separator which will contain the shape. If NULL, the shape will be expressed in world space.
volume
- View volume corresponding to the camera in which the points were taken.
bboxInLocal
- Bounding box that specifies limits of extruded shape, expressed in local space. If not specified, the shape will be extruded between the camera near and far planes.
Warning Return NULL if error occurred.
public static SoShape createFrom2DPoints(java.util.Collection<SbVec2f> pointsInCam, SbMatrix localToCam, SbBox3f bboxInLocal)
pointsInCam
- Polyline in normalized screen space ([-1, 1]x[-1, 1]).
localToCam
- Transform matrix from local space to camera space (modelViewProj matrix)
bboxInLocal
- Bounding box that specifies limits of extruded shape, expressed in local space. If not specified, the shape will be extruded between the camera near and far planes.
Warning Return NULL if error occurred.
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com