Hierarchy

Constructors

Properties

Accessors

Methods

_addEntities _array1D _calculateSizeSkewness _connectLinearShapes _copy _defineGroup _elevation _get2DXYShapeEdges _getDimensionLinesSvgElems _hashcode _intersections _intersectionsWithEdge _isometry _makeBinPackBox _mirroredX _mirroredY _mirroredZ _placeLine _project _removeContained _removedContained _setFakeArrayKeys _setFakeGroupKeys _sewed _subtracted _toOcListOfShape _unioned add addAligned addGroup addToScene align alignByPoints alignedByPoints all array at attribute bbox center checkDowngrade checkObj checkSingle children collapse color combine combined concat containers contains copy count dashed distinct edges elevation equals every extrude extruded faces filter find first forEach fromAll getEquals getEqualsTranslated getGroup getName getShapes getShapesByType getShapesByTypes getSubShapes group groups has hasType hide indexOf intersecting intersections intersectors isEmpty isShape isShapeCollection iso isometry last layout lowestType map mirrorX mirrorY mirrorZ mirrored mirroredX mirroredY mirroredZ move moveTo moveToOrigin moveX moveY moveZ moved name not object offset offsetted onlyVisible pack pop prepend prepended project push reduce remove removeFromScene replace replaceShape reverse rotate rotateAround rotateEuler rotateVecToVec rotateX rotateY rotateZ rotatedEuler scale scaled select setObj shallowCopy shells slice solids sort specific style subtract subtracted thicken thickened toArray toData toMeshShapeBuffer toMeshShapes toOcCompound toOcShapes toString toSvg type union unioned unique upgrade upgraded vertices wires fromAll isShapeCollection

Constructors

Properties

_geom: any
_groups: {
    [key: string]: AnyShape[];
} = {}

Type declaration

_obj: Obj = null
_oc: any
shapes: AnyShape[] = []

Accessors

  • get length(): number
  • Array API - for consitent API with Array

    Returns number

Methods

  • Combining Linear Shapes (Edges and Wires) into Wires connected by Vertices !!!! NEEDS WORK !!!! For Edges that overlap this does not work ( union could work: TODO ) All other Shapes except Edges are kept in the collection

    Returns ShapeCollection

  • Add dimension lines that are tied to shapes in this Collection

    Returns string

  • Shape API: Generate isometric view from Side or corner of ViewCube ('frontlefttop') or PointLike coordinate Does not add to Scene Use showHidden=true to output with hidden lines

    Parameters

    • viewpoint: PointLike
    • showHidden: boolean = false

    Returns ShapeCollection

  • EXPERIMENTAL: directly access groups by adding property to instance

    Returns void

  • Export to OC ListOfStype, used for Splitter algoritm

    Returns any

  • Check if there is an Obj container tied to current ShapeCollection If so: return it, otherwise make one and return that

    Returns Obj

  • Array API - Filter Shapes in this Collection and return a new ShapeCollection

    Parameters

    • func: ((value: any, index: number, arr: any[]) => boolean)
        • (value: any, index: number, arr: any[]): boolean
        • Parameters

          • value: any
          • index: number
          • arr: any[]

          Returns boolean

    Returns ShapeCollection

  • Array API - Alias for find to have compatitibility with Array

    Parameters

    • func: ((value: any, index: number, arr: any[]) => any)
        • (value: any, index: number, arr: any[]): any
        • Parameters

          • value: any
          • index: number
          • arr: any[]

          Returns any

    Returns any

  • Array API - Alias for ForEach to have compatitibility with Array

    Parameters

    • func: ((value: any, index: number, arr: any[]) => void)
        • (value: any, index: number, arr: any[]): void
        • Parameters

          • value: any
          • index: number
          • arr: any[]

          Returns void

    Returns ShapeCollection

  • Get available groups in this ShapeCollection

    Returns string[]

  • Shape/ShapeCollection API consistency

    Returns boolean

  • Shape API: Generate isometric view from Side or corner of ViewCube ('frontlefttop') or PointLike coordinate Add to scene Use showHidden=true to output with hidden lines

    Parameters

    • viewpoint: PointLike
    • showHidden: boolean = false

    Returns ShapeCollection

  • Parameters

    • func: ((prevValue: number, curValue: AnyShape, index: number, arr: AnyShape[]) => number)
        • (prevValue: number, curValue: AnyShape, index: number, arr: AnyShape[]): number
        • Parameters

          Returns number

    • startSum: number

    Returns number

  • Place this ShapeCollection (and all it's child Shapes) into the Obj container

    Parameters

    Returns void

  • Array API - Alias for sort to have compatitibility with Array

    Parameters

    • func: ((a: any, b: any) => number)
        • (a: any, b: any): number
        • Parameters

          • a: any
          • b: any

          Returns number

    Returns ShapeCollection

  • Combine all children Shapes into one Compund Shape (for export)

    Returns any

  • Export Shapes that are 2D and on XY plane to SVG All shapes will be converted to Edges

    Parameters

    • withAnnotations: boolean = true

    Returns string

Generated using TypeDoc