A ShapeCollection with only Vertices

Hierarchy

Constructors

Properties

Accessors

Methods

_addEntities _array1D _calculateSizeSkewness _check _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

  • 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

  • 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