CuttingPlaneUtils
-
class
cee.ug.CuttingPlaneUtils() Helper functions for cutting planes
Constructors
-
cee.ug.CuttingPlaneUtils.constructor() - CuttingPlaneUtils():
CuttingPlaneUtilsReturns:
CuttingPlaneUtils
Methods
-
static cee.ug.CuttingPlaneUtils.getPositionFromRelativeNormalPosition() static
getPositionFromRelativeNormalPosition(relVal: number, normal:Vec3Like, boundingBox:BoundingBox):Vec3Gets a position from a relative position along the given normal on the given bounding box.
This is useful for implementing a slider moving the cutting plane back and forth in the direction of the plane’s normal vector.
Parameters
relVal: number
The relative value to get the position for (0..1)normal:
Vec3LikeThe normal direction to compute the position inboundingBox:
BoundingBoxThe bounding box defining the range of positions for the point (usually the model bounding box)Returns:
Vec3
-
static cee.ug.CuttingPlaneUtils.getRelativeNormalPosition() static
Gets a relative position along the given normal and bounding box for the given point
Useful for updating the slider position based on the current position of a cutting plane.
Parameters
point:
Vec3LikeThe point to compute the relative position fornormal:
Vec3LikeThe normal direction to use for the computationboundingBox:
BoundingBoxThe bounding box defining the range of positions for the point (usually the model bounding box)Returns: number