Options
All
  • Public
  • Public/Protected
  • All
Menu

Abstract class Obj. The superclass for all geometric objects, including Polyline and Polymesh.

Hierarchy

Implements

Index

Constructors

constructor

  • Creates an instance of one of the subclasses of Ent. The entity must already exists in the geometry. Do not use this constructor if you want to add a new entity to the geometry. For that, you should use one of the 'add' methods in the geometry class.

    Parameters

    • kernel: Kernel
    • id: number

      The ID of the entity. This ID must already exist in the geometry.

    Returns Obj

    The Ent object.

Properties

Protected _id

_id: number

Protected _kernel

_kernel: Kernel

Methods

addToGroup

  • addToGroup(group: IGroup): boolean

copy

  • copy(copy_attribs?: boolean): IObj
  • Make a copy of this entity. This method must be overridden by the sub-classes.

    Parameters

    • Optional copy_attribs: boolean

    Returns IObj

    The geometry type.

exists

  • exists(): boolean
  • Check if this entity exists in the model. (i.e has it been deleted?)

    Returns boolean

    The entity ID number.

getAttribValue

getAttribs

getEdges

  • Get the edges for this object. If the edge_type is not specified, then edges for both wires and faces are returned.

    Parameters

    Returns IEdge[][][]

    The array of edges.

getFacePoints

getFaces

getGeom

getGeomType

getGroups

getID

  • getID(): number
  • Get the ID number of this entity.

    Returns number

    The entity ID number.

getLabel

  • getLabel(): string

getLabelCentroid

  • getLabelCentroid(): XYZ

getModel

getObjType

getPoints

  • Get the points for this object. If the point_type is not specified, then points for both wires and faces are returned.

    Parameters

    Returns IPoint[][][]

    A nested array of points, with sub-arrays for wires and faces.

getPointsArr

  • Get the points for this object. If the point_type is not specified, then points for both wires and faces are returned.

    Returns IPoint[]

    A flat array of points.

getPointsSet

getVertices

  • Get the vertices for this object. If the vertex_type is not specified, then vertices for both wires and faces are returned.

    Parameters

    Returns IVertex[][][]

    The array of vertices.

getWirePoints

getWires

numFaceEdges

  • numFaceEdges(): number

numFaceVertices

  • numFaceVertices(): number

numFaces

  • numFaces(): number

numWireEdges

  • numWireEdges(): number

numWireVertices

  • numWireVertices(): number

numWires

  • numWires(): number

setAttribValue

  • setAttribValue(attrib: IEntAttrib, value: any): any

toString

  • toString(): string

xform

  • xform(matrix: Matrix4): void
  • Transform the points for this object.

    Parameters

    • matrix: Matrix4

      The xform matrix.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc