Package | Description |
---|---|
de.mcp.cutcad.algorithm | |
de.mcp.cutcad.model | |
de.mcp.cutcad.model.primitives |
Modifier and Type | Field and Description |
---|---|
private static Edge |
RotateAdjectantShapes.edgeA |
private static Edge |
RotateAdjectantShapes.edgeB |
Modifier and Type | Method and Description |
---|---|
private static Edge |
RotateAdjectantShapes.getAlreadyConnectedEdge(Edge edge) |
private static Edge |
RotateAdjectantShapes.getOtherEdge(Edge edge) |
private static Edge |
RotateAdjectantShapes.getRotatingEdge(Edge edge) |
Modifier and Type | Method and Description |
---|---|
private static java.util.HashMap<Edge,java.lang.String> |
GenerateEngravingIDs.createIDs(java.util.ArrayList<Connection> connections) |
static java.util.HashMap<Edge,java.lang.String> |
GenerateEngravingIDs.getEngravingIDMap(java.util.ArrayList<Connection> connections)
This method generates a HashMap which maps each Edge which is part of a connection to an ID.
|
Modifier and Type | Method and Description |
---|---|
private static boolean |
RotateAdjectantShapes.compareEdges(Edge edge1,
Edge edge2) |
static void |
CreateTenons.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 |
CreateTenons.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.createTenons(Edge edge,
float lengthOfATenon,
float tenonHeight,
float tenonDepth,
int numberOfTenons,
boolean beginWithExtrusion) |
private static Vector3D |
RotateAdjectantShapes.findIntersectionPoint(Edge edge1,
Edge edge2) |
private static Edge |
RotateAdjectantShapes.getAlreadyConnectedEdge(Edge edge) |
private static Vector3D |
RotateAdjectantShapes.getCommonPoint(Edge edge) |
private static toxi.geom.Line3D |
RotateAdjectantShapes.getIntersectionLine(Edge edge) |
private static Vector3D |
RotateAdjectantShapes.getNormalVector(Edge edge1,
Edge edge2) |
private static Vector3D |
RotateAdjectantShapes.getNotCommonPoint(Edge edge) |
private static Edge |
RotateAdjectantShapes.getOtherEdge(Edge edge) |
private static Vector3D |
RotateAdjectantShapes.getPointOfRotatingEdge(Edge edge) |
private static Edge |
RotateAdjectantShapes.getRotatingEdge(Edge edge) |
private static float |
RotateAdjectantShapes.getRotationFor(Edge edge) |
private static void |
RotateAdjectantShapes.initialiseVirtualShape(Edge masterEdge,
Edge slaveEdge) |
static boolean |
RotateAdjectantShapes.rotateBothShapes(Connection connection,
Edge masterEdge,
Edge slaveEdge)
Rotates two edges with a common point until the other is common,
too
Two edges on different shapes, which have one common point, at
least one of their corresponding shapes can be rotated (only one
connection with another shape) and the rotating axis are also
connected with this common point.
|
private static float |
RotateAdjectantShapes.rotateOnlyOneShape(Edge edgeA,
Edge edgeB) |
private static boolean |
RotateAdjectantShapes.tryToConnectBothEdges(Connection connection,
Edge masterEdge1,
Edge masterEdge2,
float masterAngle,
Edge slaveEdge1,
Edge slaveEdge2,
float slaveAngle) |
private static boolean |
RotateAdjectantShapes.tryToConnectOneEdge(Connection connection,
Edge masterEdge,
Edge slaveEdge,
float angle) |
Modifier and Type | Field and Description |
---|---|
private Edge |
Connection.masterEdge |
private Edge |
Connection.slaveEdge |
Modifier and Type | Method and Description |
---|---|
Edge |
Connection.getMasterEdge() |
Edge |
Connection.getSlaveEdge() |
Modifier and Type | Method and Description |
---|---|
java.util.List<Edge> |
ObjectContainer.allEdges()
Returns the edges of all shapes in the project.
|
Modifier and Type | Method and Description |
---|---|
private void |
Connection.alignEdges(GShape slave,
Edge masterEdge,
Edge slaveEdge) |
private void |
Connection.alignShapes(GShape master,
GShape slave,
Edge masterEdge,
Edge slaveEdge) |
void |
Connection.connectEdges(Edge masterEdge,
Edge slaveEdge,
float angle)
Aligns and connects two given edges and their shapes in 3D-space at a given angle.
|
private boolean |
Connection.isEqualEdge(Edge masterEdge,
Edge slaveEdge) |
private void |
Connection.recalculateConnectedEdge(Edge edge) |
void |
Connection.setMasterEdge(Edge e) |
void |
Connection.setSlaveEdge(Edge e) |
Constructor and Description |
---|
Connection(Edge masterEdge,
Edge slaveEdge,
java.util.List<Connection> connections)
Creates a connection-object, specifying the two edges to be connected.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<Edge> |
GShape.edges |
Modifier and Type | Method and Description |
---|---|
java.util.List<Edge> |
GShape.getEdges() |
Modifier and Type | Method and Description |
---|---|
private Vector2D |
GShape.correctIntersection(Edge edge) |