if (GLOBAL.uiTools.getCurrentTool() == UITools.SLICES_SINGLE_SLICE) {
SketchShapes overShapes = getOverShapes(GLOBAL.uiTools.mouseX,
GLOBAL.uiTools.mouseY);
if (overShapes.size() > 0) {
SketchShape overShape = overShapes.getClosest(
GLOBAL.uiTools.mouseX, GLOBAL.uiTools.mouseY);
creossSelectionTempOver = new CrossSliceSelection(overShape,
overShape.getParentSketch().getOnSketchPlane(),
overShape.lastMouseOverPercent,
overShape.lastMouseOverPercent, 1, this);
creossSelectionTempOver.type = CrossSliceSelection.SINGLE_SLICE;
creossSelectionTempOver.select();
creossSelectionTempOver.tempSlice = true;
updateLen = true;
}
}
if (GLOBAL.uiTools.getCurrentTool() == UITools.SLICES_GROUP_SLICES
&& ((creossSelectionTempOver == null || !creossSelectionTempOver.editing))) {
SketchShapes overShapes = getOverShapes(GLOBAL.uiTools.mouseX,
GLOBAL.uiTools.mouseY);
if (overShapes.size() > 0) {
SketchShape overShape = overShapes.getClosest(
GLOBAL.uiTools.mouseX, GLOBAL.uiTools.mouseY);
creossSelectionTempOver = new CrossSliceSelection(overShape,
overShape.getParentSketch().getOnSketchPlane(),
overShape.lastMouseOverPercent,
overShape.lastMouseOverPercent, 10f, this);
creossSelectionTempOver.type = CrossSliceSelection.SLICES;
creossSelectionTempOver.mousePercent = overShape.lastMouseOverPercent;
creossSelectionTempOver.select();
creossSelectionTempOver.tempSlice = true;
updateLen = true;
}
}
if (GLOBAL.uiTools.getCurrentTool() == UITools.SLICES_SLATSLICE_GROUP
&& ((creossSelectionTempOver == null || !creossSelectionTempOver.editing))) {
SketchShapes overShapes = getOverShapes(GLOBAL.uiTools.mouseX,
GLOBAL.uiTools.mouseY);
if (overShapes.size() > 0) {
SketchShape overShape = overShapes.getClosest(
GLOBAL.uiTools.mouseX, GLOBAL.uiTools.mouseY);
creossSelectionTempOver = new CrossSliceSelection(overShape,
overShape.getParentSketch().getOnSketchPlane(),
overShape.lastMouseOverPercent,
overShape.lastMouseOverPercent, 50, this);
creossSelectionTempOver.type = CrossSliceSelection.SLATSLICES;
creossSelectionTempOver
.setSlatHeight(SETTINGS.DEFAULT_SLATSLICE_HEIGHT);
creossSelectionTempOver.mousePercent = overShape.lastMouseOverPercent;
creossSelectionTempOver.select();
creossSelectionTempOver.tempSlice = true;
updateLen = true;
}
}
if (GLOBAL.uiTools.getCurrentTool() == UITools.SLICES_SINGLE_SLAT
&& ((creossSelectionTempOver == null || !creossSelectionTempOver.editing))) {
SketchShapes overShapes = getOverShapes(GLOBAL.uiTools.mouseX,
GLOBAL.uiTools.mouseY);
if (overShapes.size() > 0) {
SketchShape overShape = overShapes.getClosest(
GLOBAL.uiTools.mouseX, GLOBAL.uiTools.mouseY);
creossSelectionTempOver = new CrossSliceSelection(overShape,
overShape.getParentSketch().getOnSketchPlane(),
overShape.lastMouseOverPercent,
overShape.lastMouseOverPercent + 0.01f, 1, this);
creossSelectionTempOver.type = CrossSliceSelection.PLANE_ON_EDGE;
creossSelectionTempOver.mousePercent = overShape.lastMouseOverPercent;
creossSelectionTempOver.select();