public class EditorUtils
extends java.lang.Object
Constructor and Description |
---|
EditorUtils() |
Modifier and Type | Method and Description |
---|---|
static Point3d |
intersectWithMesh(PolygonalMesh mesh,
MouseRayEvent ray)
For a given PolygonalMesh and MouseRayEvent check if the mesh will
intersect with the ray.
|
static Point3d |
intersectWithPlane(Point3d point,
MouseRayEvent ray) |
static Point3d |
intersectWithPlane(RigidTransform3d coordinateFrame,
MouseRayEvent ray)
Intersect a mouse ray with a plane that goes through the specified
component.
|
static void |
saveComponent(ModelComponent comp) |
static void |
saveMesh(MeshBase mesh,
AffineTransform3dBase X) |
static void |
saveMeshAsAnsysFile(FemModel3d model) |
static void |
showError(java.awt.Window window,
java.lang.String msg) |
public static Point3d intersectWithMesh(PolygonalMesh mesh, MouseRayEvent ray)
mesh
- The mesh to intersect with.ray
- The ray that is intersecting the mesh.public static Point3d intersectWithPlane(RigidTransform3d coordinateFrame, MouseRayEvent ray)
coordinateFrame
- Coordinate frame defining the plane. The plane is assumed to pass throught
the frame's origin and be perpendicular to the z axis.ray
- The mouse ray.public static Point3d intersectWithPlane(Point3d point, MouseRayEvent ray)
public static void saveComponent(ModelComponent comp)
public static void saveMesh(MeshBase mesh, AffineTransform3dBase X)
public static void showError(java.awt.Window window, java.lang.String msg)
public static void saveMeshAsAnsysFile(FemModel3d model)