Contents
- Description
- Constructor Summary
- Method Summary
- Constructor Details
- Method Details
- set(float[], int[])
- translateXYZ(double, double, double)
- rotateX(double)
- rotateY(double)
- rotateZ(double)
- show()
- getNumPoints()
- getPoint(int, Point3D)
- getNumFaces()
- getFace(int, Triangle3D)
- intersectionPath(Path3D, List)
- intersectionRay(Line3D, List)
- intersectionSegment(Line3D, List)
- hasIntersection(Line3D)
- hasIntersectionRay(Line3D)
- hasIntersectionSegment(Line3D)
- getCenterX(int)
- getCenterY(int)
- getCenterZ(int)
- getLineX()
- getLineY()
- getLineZ()
- box(float, float, float)
- getMeshView()
- main(String[])
Class Mesh3D
java.lang.Object
org.jlab.geom.prim.Mesh3D
- All Implemented Interfaces:
Transformable
,Showable
- Author:
- gavalian
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Mesh3D
box
(float dx, float dy, float dz) getCenterX
(int order) getCenterY
(int order) getCenterZ
(int order) void
getFace
(int face, Triangle3D tri) getLineX()
getLineY()
getLineZ()
javafx.scene.shape.MeshView
int
int
void
boolean
hasIntersection
(Line3D line) Returns true if the infinite line intersects this shape.boolean
hasIntersectionRay
(Line3D line) Returns true if the ray intersects this shape.boolean
hasIntersectionSegment
(Line3D line) Returns true if the line segment intersects this shape.void
intersectionPath
(Path3D path, List<Point3D> intersections) int
intersectionRay
(Line3D line, List<Point3D> intersections) Finds intersections of the given ray with this shape.int
intersectionSegment
(Line3D line, List<Point3D> intersections) Finds intersections of the given line segment with this shape.static void
Main program for testsvoid
rotateX
(double angle) Rotates this object clockwise around the x axis.void
rotateY
(double angle) Rotates this object clockwise around the y axis.void
rotateZ
(double angle) Rotates this object clockwise around the z axis.final void
set
(float[] points, int[] faces) void
show()
void
translateXYZ
(double dx, double dy, double dz) Translates this object linearly by the amounts specified.
-
Constructor Details
-
Method Details
-
set
public final void set(float[] points, int[] faces) -
translateXYZ
public void translateXYZ(double dx, double dy, double dz) Description copied from interface:Transformable
Translates this object linearly by the amounts specified.- Specified by:
translateXYZ
in interfaceTransformable
- Parameters:
dx
- amount to translate along the x axisdy
- amount to translate along the y axisdz
- amount to translate along the z axis
-
rotateX
public void rotateX(double angle) Description copied from interface:Transformable
Rotates this object clockwise around the x axis.- Specified by:
rotateX
in interfaceTransformable
- Parameters:
angle
- rotation angle in radians
-
rotateY
public void rotateY(double angle) Description copied from interface:Transformable
Rotates this object clockwise around the y axis.- Specified by:
rotateY
in interfaceTransformable
- Parameters:
angle
- rotation angle in radians
-
rotateZ
public void rotateZ(double angle) Description copied from interface:Transformable
Rotates this object clockwise around the z axis.- Specified by:
rotateZ
in interfaceTransformable
- Parameters:
angle
- rotation angle in radians
-
show
-
getNumPoints
public int getNumPoints() -
getPoint
-
getNumFaces
public int getNumFaces() -
getFace
-
intersectionPath
-
intersectionRay
Finds intersections of the given ray with this shape. Intersection points will be appended to the given list.- Parameters:
line
- the rayintersections
- the list of intersections- Returns:
- the number of intersections that were found
-
intersectionSegment
Finds intersections of the given line segment with this shape. Intersection points will be appended to the given list.- Parameters:
line
- the line segmentintersections
- the list of intersections- Returns:
- the number of intersections that were found
-
hasIntersection
Returns true if the infinite line intersects this shape.- Parameters:
line
- the infinite line- Returns:
- true if the line intersects the shape
-
hasIntersectionRay
Returns true if the ray intersects this shape.- Parameters:
line
- the ray- Returns:
- true if the line intersects the shape
-
hasIntersectionSegment
Returns true if the line segment intersects this shape.- Parameters:
line
- the line segment- Returns:
- true if the line intersects the shape
-
getCenterX
-
getCenterY
-
getCenterZ
-
getLineX
-
getLineY
-
getLineZ
-
box
-
getMeshView
public javafx.scene.shape.MeshView getMeshView() -
main
-