Package cc.sketchchair.sketch

Examples of cc.sketchchair.sketch.SketchShapes


    }
    return closest;
  }

  public SketchShapes getOverShapes(float x, float y) {
    SketchShapes overShapes = new SketchShapes(null);

    for (int i = 0; i < this.getList().size(); i++) {
      SlicePlane curPlane = this.getList().get(i);
      Vec2D pointOnPlan = GLOBAL.uiTools.getPointOnPlane(new Vec2D(x, y),
          curPlane.getPlane());
      overShapes.addAll(curPlane.getOverShape(pointOnPlan.x,
          pointOnPlan.y));
    }
    return overShapes;
  }
View Full Code Here


    if (creossSelectionTempOver != null && !creossSelectionTempOver.editing)
      creossSelectionTempOver = null;

    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);
View Full Code Here

                  if(crossSliceSelection.extendLegSliceToTopOfLeg){
                    seatBottom = new Vec2D(0,0);
                  }else{
                 
                   
                    SketchShapes tempSketchShapes = currentPlaneY.getSketch().getSketchShapes().clone();
                   
                    tempSketchShapes.removeLegs();
                    tempSketchShapes.sketchOutlines.clear();
                    tempSketchShapes.buildOutline();
                   
                    if (tempSketchShapes.sketchOutlines
                        .getOutterOutline() == null)
                      return;
                   
View Full Code Here

TOP

Related Classes of cc.sketchchair.sketch.SketchShapes

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.