artisynth.core.gui.editorManager
Class EditorUtils
java.lang.Object
artisynth.core.gui.editorManager.EditorUtils
public class EditorUtils
- extends java.lang.Object
This class contains methods that all Edit Widgets and Editors can access and
use.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditorUtils
public EditorUtils()
intersectWithMesh
public static Point3d intersectWithMesh(PolygonalMesh mesh,
MouseRayEvent ray)
- For a given PolygonalMesh and MouseRayEvent check if the mesh will
intersect with the ray.
- Parameters:
mesh
- The mesh to intersect with.ray
- The ray that is intersecting the mesh.
- Returns:
- The point at which the ray intersects the mesh.
intersectWithPlane
public static Point3d intersectWithPlane(RigidTransform3d coordinateFrame,
MouseRayEvent ray)
- Intersect a mouse ray with a plane that goes through the specified
component. The plane that is intersected with is perpendicular to the
mouse ray and passes through the specified component.
- Parameters:
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.
- Returns:
- The point of intersection between the plane and mouse ray.
intersectWithPlane
public static Point3d intersectWithPlane(Point3d point,
MouseRayEvent ray)
saveComponent
public static void saveComponent(ModelComponent comp)
saveMesh
public static void saveMesh(MeshBase mesh,
AffineTransform3dBase X)
showError
public static void showError(java.awt.Window window,
java.lang.String msg)
saveMeshAsAnsysFile
public static void saveMeshAsAnsysFile(FemModel3d model)