dir = new Vector3d();
toPcp.getInlineControlPointEnds(start, end, dir);
dir.normalize();
- if (!insertAdjustable || insertPosition == PositionType.NEXT) {
- switch (position) {
- case NEXT:
- pos = new Vector3d(end);
- break;
- case PREVIOUS:
- pos = new Vector3d(start);
- break;
- case SPLIT:
- break;
- }
- } else if (insertPosition == PositionType.SPLIT) {
- pos = new Vector3d(toPcp.getWorldPosition());
- } else {
- switch (position) {
- case NEXT:
- pos = new Vector3d(start);
- break;
- case PREVIOUS:
- pos = new Vector3d(end);
- break;
- case SPLIT:
- break;
- }
- }
+ switch (position) {
+ case NEXT:
+ pos = new Vector3d(end);
+ break;
+ case PREVIOUS:
+ pos = new Vector3d(start);
+ break;
+ case SPLIT:
+ pos = new Vector3d(toPcp.getWorldPosition());
+ break;
+ }
} else if (toPcp.isDirected()) {
dir = new Vector3d(toPcp.getDirection(Direction.NEXT));