Hierarchy

  • Sketch

Constructors

Properties

DEFAULT_CURSOR: {
    direction: Vector;
    point: Point;
} = ...

Type declaration

DEFAULT_PLANE_ORIGIN: number[] = ...
DEFAULT_PLANE_XDIR: number[] = ...
DEFAULT_PLANE_YDIR: number[] = ...
DEFAULT_PLANE_ZDIR: number[] = ...
PLANE_NAME_TO_PLANE: {
    [key: string]: SketchPlane;
} = ...

Type declaration

_autoOp: boolean = true
_geom: Geom
_oc: any
activeCursor: Cursor
cursors: Cursor[]
mode: string = 'plane'
ocGcs: gp_Ax3
ocLcs: gp_Ax3
ocLocalToWorldTransform: gp_Trsf = null
ocWorldToLocalTransform: gp_Trsf = null
pendingOperations: Operation[] = []
pendingSelections: ShapeCollection = ...
pendingShapes: ShapeCollection = ...
prevLocalCursor: Cursor
shapes: ShapeCollection = ...
workplane: SketchPlane

Methods

  • Returns void

  • Apply union or subtraction based on relation of new Shape with existing ones in this.shapes

    Parameters

    • newFace: Face
    • autoOp: boolean = true

    Returns void

  • Start a 2D Sketch workplane at a Face !!!! Not to be confused with on(Shape) which draws on a curved surface using UV coordinates !!!!

    Parameters

    Returns void

  • Set workplane of Sketch from plane string (xy,xz,yz) or side (top, bottom, left, right, front, back)

    Parameters

    Returns void

  • Everything after a new Edge

    Parameters

    Returns void

  • Convenience method combining smartFaceOps and afterNewShapes

    Parameters

    • newFace: Face
    • autoOp: boolean = true

    Returns void

  • Returns void

  • Some created Faces need to be rotated to face workplane

    Parameters

    Returns void

  • This is the active cursor of all cursors in this.cursors

    Parameters

    Returns void

  • Update cursor based on (just created) Shape

    Parameters

    Returns void

  • Used for relative coordinates between arguments. Like arcTo([100,100],['+100','+100']) - second Point is relative to [100,100], so we need to set it! NOTE: problem with using relative polar coordinates because we don't know arc tangent yet!

    Parameters

    Returns void

  • Prepare transformations needed for turning local coords into world ones

    Returns void

  • Transform PointLike to absolute World coordinate with:

     - Resolve relative coordinates (cartesian and polar) - if not the same as cursor, can be set by prevLocalPoint
    - Transform local coords to world coordinates

    Parameters

    Returns Point

  • Combine All linear Shapes into Wires

    Returns void

  • Do chamfer operation on last added Edge

    Parameters

    • newEdge: Edge
    • params: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns void

  • Do fillet operation on last added Edge

    Parameters

    • newEdge: Edge
    • params: any

    Returns void

  • Offset pendingShapes a given amount with a specific type (tangent, arc, intersection)

    Parameters

    • Optional amount: number
    • Optional type: string

    Returns Sketch

  • Offset pendingShapes of Sketch Shapes a given amount with a specific type (tangent, arc, intersection)

    Parameters

    • Optional amount: number
    • Optional type: string

    Returns Sketch

  • Drawing directly on a curved surface with UV coords

    Parameters

    Returns void

  • Parameters

    • Optional width: number
    • Optional height: number

    Returns Sketch

  • Select certain parts of pendingShapes for operations to use

    Parameters

    • selectionString: string

    Returns Sketch

Generated using TypeDoc