public class CreateTenons
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
relationTenonToEdge |
private static float |
tolerance |
| Constructor and Description |
|---|
CreateTenons() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createOutlineOfEdge(Edge edge)
Calculates the outline of one (unconnected) edge
Calculates the outline of one (unconnected) edge - which is
basically just the line between the two points of this edge in the
2D view.
|
static void |
createOutlineOfEdge(Edge masterEdge,
Edge slaveEdge)
Calculates the outline of two (connected) edges
Calculates the outline of two (connected) edges - using the
addition of the thicknesses of both shapes times a factor for the
length of a tenon, and then uses the angle between both shapes
with these thicknesses to calculate how much each tenon of both
edges have to be cut in or extruded to be able to assemble them on
on side and have enough extrusion to be able to sandpaper these
tenons for a smooth edge.
|
private static java.util.ArrayList<Vector2D> |
createTenons(Edge edge,
float lengthOfATenon,
float tenonHeight,
float tenonDepth,
int numberOfTenons,
boolean beginWithExtrusion) |
private static float |
getHeight(int thicknessMaster,
int thicknessSlave,
float angle) |
private static float |
safeAngleBetween(Vector3D masterEdgeDirection,
Vector3D slaveEdgeDirection) |
private static float tolerance
private static int relationTenonToEdge
public static void createOutlineOfEdge(Edge edge)
edge - is the the edge which outline has to be modifiedprivate static float safeAngleBetween(Vector3D masterEdgeDirection, Vector3D slaveEdgeDirection)
public static void createOutlineOfEdge(Edge masterEdge, Edge slaveEdge)
masterEdge - First Edge, which should be connected withslaveEdge - , the second edge
The order of these edges determines which edge starts with a
cut in (the first one), while the other is extruded at the its
ends.private static float getHeight(int thicknessMaster,
int thicknessSlave,
float angle)