public class Extrude
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static CSG |
combine(Polygon p1,
Polygon p2)
Combines two polygons into one CSG object.
|
static java.util.List<Polygon> |
combine(Polygon p1,
Polygon p2,
boolean bottom,
boolean top)
Combines two polygons into one CSG object.
|
static boolean |
isCCW(Polygon polygon)
Indicates whether the specified polygon is defined counter-clockwise.
|
static java.util.List<Polygon> |
points(eu.mihosoft.vvecmath.Vector3d dir,
boolean top,
boolean bottom,
java.util.List<eu.mihosoft.vvecmath.Vector3d> points1)
Extrudes the specified path (convex or concave polygon without holes or
intersections, specified in CCW) into the specified direction.
|
static java.util.List<Polygon> |
points(eu.mihosoft.vvecmath.Vector3d dir,
boolean top,
boolean bottom,
eu.mihosoft.vvecmath.Vector3d... points)
Extrudes the specified path (convex or concave polygon without holes or
intersections, specified in CCW) into the specified direction.
|
static CSG |
points(eu.mihosoft.vvecmath.Vector3d dir,
java.util.List<eu.mihosoft.vvecmath.Vector3d> points)
Extrudes the specified path (convex or concave polygon without holes or
intersections, specified in CCW) into the specified direction.
|
static CSG |
points(eu.mihosoft.vvecmath.Vector3d dir,
eu.mihosoft.vvecmath.Vector3d... points)
Extrudes the specified path (convex or concave polygon without holes or
intersections, specified in CCW) into the specified direction.
|
public static CSG points(eu.mihosoft.vvecmath.Vector3d dir, eu.mihosoft.vvecmath.Vector3d... points)
dir
- directionpoints
- path (convex or concave polygon without holes or
intersections)public static CSG points(eu.mihosoft.vvecmath.Vector3d dir, java.util.List<eu.mihosoft.vvecmath.Vector3d> points)
dir
- directionpoints
- path (convex or concave polygon without holes or
intersections)public static java.util.List<Polygon> points(eu.mihosoft.vvecmath.Vector3d dir, boolean top, boolean bottom, eu.mihosoft.vvecmath.Vector3d... points)
dir
- directionpoints
- path (convex or concave polygon without holes or
intersections)public static java.util.List<Polygon> points(eu.mihosoft.vvecmath.Vector3d dir, boolean top, boolean bottom, java.util.List<eu.mihosoft.vvecmath.Vector3d> points1)
dir
- directionpoints1
- path (convex or concave polygon without holes or
intersections)points1
- path (convex or concave polygon without holes or
intersections)public static CSG combine(Polygon p1, Polygon p2)
p1
- first polygonp2
- second polygonpublic static java.util.List<Polygon> combine(Polygon p1, Polygon p2, boolean bottom, boolean top)
p1
- first polygonp2
- second polygonbottom
- defines whether to close the bottom of the tubetop
- defines whether to close the top of the tubepublic static boolean isCCW(Polygon polygon)
polygon
- polygontrue
if the specified polygon is defined counter-clockwise;
false
otherwise