Hierarchy

  • Geom

Constructors

Properties

_activeLayerGroup: Obj = null
_activeLayerGroupInObj: Obj = null
_annotator: Annotator
_cache: ((key: string) => any) = ...

Type declaration

    • (key: string): any
    • Parameters

      • key: string

      Returns any

_captureShapesStart: ShapeCollection = null
_console: any
_oc: any
_units: ModelUnits = DEFAULT_UNITS
activeLayer: Obj
activeSketch: Sketch
layerStack: Obj[] = []
scene: Obj

Methods

  • Create the basic planes along the main axis

    Parameters

    • Optional axis: string
    • Optional size: number

    Returns Face

  • Create a Solid Box with width, depth and height and optional a position

    Parameters

    • Optional width: number
    • Optional depth: number
    • Optional height: number
    • Optional position: PointLike

    Returns Solid

  • Create a Solid Cone

    Parameters

    • Optional bottomRadius: number
    • Optional topRadius: number
    • Optional height: number
    • Optional position: PointLike

    Returns Solid

  • Alias for a Solid Box with width, depth and height and optional a position

    Parameters

    • Optional width: number
    • Optional depth: number
    • Optional height: number
    • Optional position: PointLike

    Returns Solid

  • Create a Solid Cylinder

    Parameters

    • Optional radius: number
    • Optional height: number
    • Optional position: PointLike
    • Optional angle: number

    Returns Solid

  • Parameters

    • Optional radius: number
    • Optional height: number
    • Optional angle: number
    • Optional pivot: PointLike
    • Optional direction: PointLike
    • Optional lefthand: boolean
    • Optional coneSemiAngle: number

    Returns Wire

  • Create a planar Face with width and depth and optional position

    Parameters

    • Optional width: number
    • Optional depth: number
    • Optional normal: PointLike
    • Optional position: PointLike

    Returns Face

  • Create a 2D planar Face

    Parameters

    • Optional width: number
    • Optional depth: number
    • Optional position: PointLike

    Returns Face

  • Make 2D Spiral

    Parameters

    • firstRadius: number
    • secondRadius: number
    • angle: number
    • lefthand: boolean

    Returns Wire

  • Add layer Obj to parent

    Parameters

    Returns void

  • Recursively get all objects within the scene Obj

    Returns Obj[]

  • Returns void

  • Parameters

    • radius: number

    Returns void

  • Parameters

    • layerName: string = null

    Returns boolean

  • end grouping of Layer. Layers are now again created on scene root

    Returns Obj

  • Parameters

    • layerName: string = null

    Returns Obj

  • Returns string[]

  • Get a name for a layer based on existing ones and a pattern

    Parameters

    • name: string

    Returns string

  • Get unique name based on current names in Scene

    Parameters

    • name: string

    Returns string

  • Returns string[]

  • Create and/or activate a layer as sibling to active layer (or Scene) IMPORTANT: a layer is always a direct child of the Scene root

    Parameters

    • Optional name: string

    Returns Obj

  • Start combining new layers into another layer with given name Call endLayerGroup() to stop grouping layers TODO: For later advanced use we can even supply a name of a parent Obj

    Parameters

    • name: string
    • Optional inObjName: string

    Returns Obj

  • Parameters

    • Optional amount: number
    • Optional type: string

    Returns void

  • Parameters

    • Optional amount: number
    • Optional type: string

    Returns void

  • Parameters

    • Optional width: number
    • Optional height: number

    Returns void

  • Remove Obj from Scene

    Parameters

    Returns void

  • clean out the scene and reset stuff if needed

    Returns void

  • Returns void

  • Parameters

    • selectionString: string

    Returns void

  • Set Layer Obj as active

    Parameters

    Returns Obj

  • Parameters

    • Optional distance: number

    Returns void

  • Parameters

    • Optional distance: number

    Returns void

Generated using TypeDoc