public class Main
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Main.PlaneIntersection |
static class |
Main.RayIntersection |
Modifier and Type | Field and Description |
---|---|
static double |
EPS |
Constructor and Description |
---|
Main() |
Modifier and Type | Method and Description |
---|---|
static eu.mihosoft.jcsg.playground.Main.LineIntersectionResult |
calculateLineLineIntersection(eu.mihosoft.vvecmath.Vector3d line1Point1,
eu.mihosoft.vvecmath.Vector3d line1Point2,
eu.mihosoft.vvecmath.Vector3d line2Point1,
eu.mihosoft.vvecmath.Vector3d line2Point2)
Calculates the intersection line segment between two lines.
|
static eu.mihosoft.jcsg.playground.Main.PolygonType |
classifyPolygon(Polygon p1,
java.util.List<Polygon> polygons,
Bounds b) |
static Main.PlaneIntersection |
computePlaneIntersection(eu.mihosoft.vvecmath.Plane plane,
eu.mihosoft.vvecmath.Vector3d point,
eu.mihosoft.vvecmath.Vector3d direction,
double TOL) |
static java.util.List<Main.RayIntersection> |
getPolygonsThatIntersectWithRay(eu.mihosoft.vvecmath.Vector3d point,
eu.mihosoft.vvecmath.Vector3d direction,
java.util.List<Polygon> polygons,
double TOL) |
static void |
main(java.lang.String[] args) |
static java.util.List<Polygon> |
splitPolygons(java.util.List<Polygon> ps1,
java.util.List<Polygon> ps2,
Bounds b1,
Bounds b2)
Splits polygons ps2 with planes from polygons ps1.
|
static void |
testCut() |
public static final double EPS
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public static eu.mihosoft.jcsg.playground.Main.PolygonType classifyPolygon(Polygon p1, java.util.List<Polygon> polygons, Bounds b)
public static java.util.List<Main.RayIntersection> getPolygonsThatIntersectWithRay(eu.mihosoft.vvecmath.Vector3d point, eu.mihosoft.vvecmath.Vector3d direction, java.util.List<Polygon> polygons, double TOL)
public static Main.PlaneIntersection computePlaneIntersection(eu.mihosoft.vvecmath.Plane plane, eu.mihosoft.vvecmath.Vector3d point, eu.mihosoft.vvecmath.Vector3d direction, double TOL)
public static java.util.List<Polygon> splitPolygons(java.util.List<Polygon> ps1, java.util.List<Polygon> ps2, Bounds b1, Bounds b2)
ps1
- ps2
- b1
- b2
- public static void testCut()
public static eu.mihosoft.jcsg.playground.Main.LineIntersectionResult calculateLineLineIntersection(eu.mihosoft.vvecmath.Vector3d line1Point1, eu.mihosoft.vvecmath.Vector3d line1Point2, eu.mihosoft.vvecmath.Vector3d line2Point1, eu.mihosoft.vvecmath.Vector3d line2Point2)
line1Point1
- line1Point2
- line2Point1
- line2Point2
- true
if the intersection line segment exists; false
otherwise