JavaCAD
|
Static Public Member Functions | |
static CSG | polygons (Polygon polygon1, Number zDistance) |
static CSG | polygons (Polygon polygon1, Polygon polygon2) |
static ArrayList< CSG > | polygons (eu.mihosoft.vrl.v3d.Polygon polygon1, ArrayList< Transform > transforms) |
static ArrayList< CSG > | polygons (eu.mihosoft.vrl.v3d.Polygon polygon1, Transform... transformparts) |
static CSG | points (Vector3d dir, List< Vector3d > points) |
static CSG | points (Vector3d dir, Vector3d... points) |
static List< Vector3d > | toCCW (List< Vector3d > points) |
static boolean | isCCW (Polygon polygon) |
static IExtrusion | getExtrusionEngine () |
static void | setExtrusionEngine (IExtrusion extrusionEngine) |
static CSG | byPath (List< List< Vector3d >> points, double height) |
static CSG | byPath (List< List< Vector3d >> points, double height, int resolution) |
static ArrayList< Transform > | pathToTransforms (List< List< Vector3d >> points, int resolution) |
static ArrayList< CSG > | moveAlongProfile (CSG object, List< List< Vector3d >> points, int resolution) |
static ArrayList< Transform > | bezierToTransforms (Vector3d controlA, Vector3d controlB, Vector3d endPoint, int iterations) |
static ArrayList< Transform > | bezierToTransforms (List< Vector3d > parts, int iterations) |
static ArrayList< Transform > | bezierToTransforms (BezierPath pathA, BezierPath pathB, int iterations, Vector3d controlA, Vector3d controlB) |
static ArrayList< Transform > | bezierToTransforms (Vector3d start, Vector3d controlA, Vector3d controlB, Vector3d endPoint, int iterations) |
static ArrayList< CSG > | revolve (CSG slice, double radius, int numSlices) |
static ArrayList< CSG > | revolve (Polygon poly, int numSlices) |
static ArrayList< CSG > | revolve (Polygon poly, double radius, int numSlices) |
static ArrayList< CSG > | revolve (CSG slice, double radius, double archLen, int numSlices) |
static ArrayList< CSG > | revolve (CSG slice, double radius, double archLen, List< List< Vector3d >> points, int numSlices) |
static ArrayList< CSG > | bezier (CSG slice, ArrayList< Double > controlA, ArrayList< Double > controlB, ArrayList< Double > endPoint, int numSlices) |
static ArrayList< CSG > | bezier (ArrayList< CSG > s, ArrayList< Double > controlA, ArrayList< Double > controlB, ArrayList< Double > endPoint) |
static ArrayList< CSG > | hull (ArrayList< CSG > s, ArrayList< Transform > p) |
static ArrayList< CSG > | hull (CSG c, ArrayList< Transform > p) |
static ArrayList< CSG > | linear (ArrayList< CSG > s, ArrayList< Double > endPoint) |
static ArrayList< CSG > | linear (CSG s, ArrayList< Double > endPoint, int numSlices) |
static ArrayList< CSG > | move (ArrayList< CSG > slice, ArrayList< Transform > p) |
static ArrayList< CSG > | move (CSG slice, ArrayList< Transform > p) |
static ArrayList< CSG > | moveBezier (CSG slice, ArrayList< Double > controlA, ArrayList< Double > controlB, ArrayList< Double > endPoint, int numSlices) |
static ArrayList< CSG > | moveBezier (ArrayList< CSG > slice, ArrayList< Double > controlA, ArrayList< Double > controlB, ArrayList< Double > endPoint) |
static ArrayList< CSG > | moveBezier (CSG slice, BezierPath pathA, int numSlices) |
static ArrayList< CSG > | moveBezier (CSG slice, BezierPath pathA, BezierPath pathB, int iterations) |
static Polygon | toCCW (Polygon concave) |
Private Member Functions | |
Extrude () | |
Transform | toTransform () |
Static Private Member Functions | |
static double | normalizedX (Vector3d v1, Vector3d v2) |
static Vector3d | fromDouble (ArrayList< Double > controlA) |
Static Private Attributes | |
static IExtrusion | extrusionEngine |
Extrudes concave and convex polygons.
Definition at line 55 of file Extrude.java.
|
private |
Instantiates a new extrude.
Definition at line 126 of file Extrude.java.
|
static |
Definition at line 642 of file Extrude.java.
References eu.mihosoft.vrl.v3d.ext.quickhull3d.HullUtil.hull(), and eu.mihosoft.vrl.v3d.Extrude.moveBezier().
|
static |
Definition at line 632 of file Extrude.java.
References eu.mihosoft.vrl.v3d.CSG.clone().
Referenced by eu.mihosoft.vrl.v3d.Extrude.linear().
|
static |
Definition at line 448 of file Extrude.java.
References com.piro.bezier.BezierPath.eval(), eu.mihosoft.vrl.v3d.Transform.rotY(), eu.mihosoft.vrl.v3d.Transform.rotZ(), eu.mihosoft.vrl.v3d.Transform.translateX(), eu.mihosoft.vrl.v3d.Transform.translateY(), eu.mihosoft.vrl.v3d.Transform.translateZ(), eu.mihosoft.vrl.v3d.Vector3d.x(), eu.mihosoft.vrl.v3d.Vector3d.y(), and eu.mihosoft.vrl.v3d.Vector3d.z().
|
static |
Definition at line 431 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.bezierToTransforms().
|
static |
Definition at line 419 of file Extrude.java.
References com.piro.bezier.BezierPath.parsePathString(), eu.mihosoft.vrl.v3d.Vector3d.x(), eu.mihosoft.vrl.v3d.Vector3d.y(), and eu.mihosoft.vrl.v3d.Vector3d.z().
Referenced by eu.mihosoft.vrl.v3d.Extrude.bezierToTransforms(), eu.mihosoft.vrl.v3d.Extrude.moveBezier(), and eu.mihosoft.vrl.v3d.Extrude.pathToTransforms().
|
static |
Definition at line 558 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.bezierToTransforms(), com.piro.bezier.BezierPath.parsePathString(), eu.mihosoft.vrl.v3d.Vector3d.x(), eu.mihosoft.vrl.v3d.Vector3d.y(), and eu.mihosoft.vrl.v3d.Vector3d.z().
|
static |
Definition at line 340 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.points().
|
static |
Definition at line 346 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.pathToTransforms(), and eu.mihosoft.vrl.v3d.Extrude.points().
|
staticprivate |
Definition at line 716 of file Extrude.java.
Referenced by eu.mihosoft.vrl.v3d.Extrude.moveBezier().
|
static |
Definition at line 332 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.extrusionEngine.
Referenced by eu.mihosoft.vrl.v3d.svg.SVGLoad.extrudeLayers(), and eu.mihosoft.vrl.v3d.Extrude.points().
|
static |
Definition at line 657 of file Extrude.java.
References eu.mihosoft.vrl.v3d.ext.quickhull3d.HullUtil.hull(), and eu.mihosoft.vrl.v3d.Extrude.move().
Referenced by eu.mihosoft.vrl.v3d.Extrude.hull().
Definition at line 670 of file Extrude.java.
References eu.mihosoft.vrl.v3d.CSG.clone(), and eu.mihosoft.vrl.v3d.Extrude.hull().
|
static |
Checks if is ccw.
polygon | the polygon |
Definition at line 258 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.normalizedX(), eu.mihosoft.vrl.v3d.Vertex.pos, eu.mihosoft.vrl.v3d.Polygon.vertices, eu.mihosoft.vrl.v3d.Vector3d.x(), and eu.mihosoft.vrl.v3d.Vector3d.y().
Referenced by eu.mihosoft.vrl.v3d.ext.org.poly2tri.PolygonUtil.concaveToConvex(), eu.mihosoft.vrl.v3d.TextExtrude.loadPoints(), eu.mihosoft.vrl.v3d.Slice.sanatize(), and eu.mihosoft.vrl.v3d.Extrude.toCCW().
|
static |
Definition at line 678 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.bezier().
|
static |
Definition at line 683 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.bezier().
|
static |
Definition at line 689 of file Extrude.java.
References eu.mihosoft.vrl.v3d.CSG.move().
Referenced by eu.mihosoft.vrl.v3d.Extrude.hull(), eu.mihosoft.vrl.v3d.Extrude.moveAlongProfile(), and eu.mihosoft.vrl.v3d.Extrude.moveBezier().
|
static |
Definition at line 694 of file Extrude.java.
References eu.mihosoft.vrl.v3d.CSG.move().
|
static |
Definition at line 414 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.move(), eu.mihosoft.vrl.v3d.Extrude.pathToTransforms(), and eu.mihosoft.vrl.v3d.Extrude.points().
|
static |
Definition at line 706 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.bezierToTransforms(), eu.mihosoft.vrl.v3d.Extrude.fromDouble(), and eu.mihosoft.vrl.v3d.Extrude.move().
|
static |
Definition at line 698 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.bezierToTransforms(), eu.mihosoft.vrl.v3d.Extrude.fromDouble(), and eu.mihosoft.vrl.v3d.Extrude.move().
Referenced by eu.mihosoft.vrl.v3d.Extrude.bezier(), and eu.mihosoft.vrl.v3d.Extrude.moveBezier().
|
static |
Definition at line 730 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.bezierToTransforms(), and eu.mihosoft.vrl.v3d.Extrude.move().
|
static |
Definition at line 720 of file Extrude.java.
References com.piro.bezier.BezierPath.eval(), eu.mihosoft.vrl.v3d.Extrude.moveBezier(), com.piro.bezier.BezierPath.parsePathString(), eu.mihosoft.vrl.v3d.Vector3d.x(), and eu.mihosoft.vrl.v3d.Vector3d.y().
Normalized x.
v1 | the v1 |
v2 | the v2 |
Definition at line 326 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Vector3d.dividedBy(), eu.mihosoft.vrl.v3d.Vector3d.magnitude(), eu.mihosoft.vrl.v3d.Vector3d.minus(), eu.mihosoft.vrl.v3d.Vector3d.times(), eu.mihosoft.vrl.v3d.Vector3d.x(), and eu.mihosoft.vrl.v3d.Vector3d.X_ONE.
Referenced by eu.mihosoft.vrl.v3d.Extrude.isCCW().
|
static |
Definition at line 364 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.bezierToTransforms(), com.piro.bezier.BezierPath.parsePathString(), eu.mihosoft.vrl.v3d.Extrude.points(), eu.mihosoft.vrl.v3d.Vector3d.x(), eu.mihosoft.vrl.v3d.Vector3d.y(), and eu.mihosoft.vrl.v3d.Vector3d.z().
Referenced by eu.mihosoft.vrl.v3d.Extrude.byPath(), eu.mihosoft.vrl.v3d.Extrude.moveAlongProfile(), and eu.mihosoft.vrl.v3d.Extrude.revolve().
Definition at line 199 of file Extrude.java.
References eu.mihosoft.vrl.v3d.IExtrusion.extrude(), and eu.mihosoft.vrl.v3d.Extrude.getExtrusionEngine().
Referenced by eu.mihosoft.vrl.v3d.Extrude.byPath(), eu.mihosoft.vrl.v3d.Parabola.extrudeByEquation(), eu.mihosoft.vrl.v3d.TextExtrude.loadPoints(), eu.mihosoft.vrl.v3d.Extrude.moveAlongProfile(), eu.mihosoft.vrl.v3d.Extrude.pathToTransforms(), eu.mihosoft.vrl.v3d.Extrude.points(), eu.mihosoft.vrl.v3d.Extrude.revolve(), eu.mihosoft.vrl.v3d.Extrude.toCCW(), eu.mihosoft.vrl.v3d.DXF.toParts(), eu.mihosoft.vrl.v3d.Isosceles.toPolygons(), and eu.mihosoft.vrl.v3d.Wedge.toPolygons().
Extrudes the specified path (convex or concave polygon without holes or intersections, specified in CCW) into the specified direction.
dir | direction |
points | path (convex or concave polygon without holes or intersections) |
Definition at line 213 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.points().
|
static |
Definition at line 174 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Polygon.fromPoints(), eu.mihosoft.vrl.v3d.Extrude.polygons(), and eu.mihosoft.vrl.v3d.Extrude.toCCW().
|
static |
Definition at line 193 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.polygons().
Definition at line 130 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Polygon.transformed().
Referenced by eu.mihosoft.vrl.v3d.Extrude.polygons(), and eu.mihosoft.vrl.v3d.Extrude.revolve().
Definition at line 134 of file Extrude.java.
References eu.mihosoft.vrl.v3d.ext.org.poly2tri.PolygonUtil.concaveToConvex(), eu.mihosoft.vrl.v3d.Polygon.flipped(), eu.mihosoft.vrl.v3d.Polygon.fromPoints(), eu.mihosoft.vrl.v3d.CSG.fromPolygons(), eu.mihosoft.vrl.v3d.Polygon.getStorage(), and eu.mihosoft.vrl.v3d.Polygon.vertices.
|
static |
Definition at line 602 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.revolve().
|
static |
Definition at line 606 of file Extrude.java.
References eu.mihosoft.vrl.v3d.CSG.hullAll(), eu.mihosoft.vrl.v3d.CSG.movey(), eu.mihosoft.vrl.v3d.Extrude.pathToTransforms(), eu.mihosoft.vrl.v3d.Extrude.points(), eu.mihosoft.vrl.v3d.CSG.rotz(), and eu.mihosoft.vrl.v3d.CSG.transformed().
|
static |
Definition at line 575 of file Extrude.java.
Referenced by eu.mihosoft.vrl.v3d.Fillet.corner(), and eu.mihosoft.vrl.v3d.Extrude.revolve().
|
static |
Definition at line 583 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Transform.movex(), eu.mihosoft.vrl.v3d.Extrude.polygons(), eu.mihosoft.vrl.v3d.Transform.roty(), and eu.mihosoft.vrl.v3d.Polygon.transformed().
Definition at line 579 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.revolve().
|
static |
Definition at line 336 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Extrude.extrusionEngine.
To ccw.
points | the points |
Definition at line 224 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Polygon.fromPoints(), eu.mihosoft.vrl.v3d.Extrude.isCCW(), and eu.mihosoft.vrl.v3d.Extrude.points().
Referenced by eu.mihosoft.vrl.v3d.svg.SVGLoad.loadSingle(), and eu.mihosoft.vrl.v3d.Extrude.polygons().
Definition at line 737 of file Extrude.java.
References eu.mihosoft.vrl.v3d.Polygon.fromPoints(), eu.mihosoft.vrl.v3d.Polygon.getPoints(), eu.mihosoft.vrl.v3d.Extrude.isCCW(), and eu.mihosoft.vrl.v3d.Extrude.points().
|
private |
Definition at line 443 of file Extrude.java.
|
staticprivate |
Definition at line 56 of file Extrude.java.
Referenced by eu.mihosoft.vrl.v3d.Extrude.getExtrusionEngine(), and eu.mihosoft.vrl.v3d.Extrude.setExtrusionEngine().