Options
All
  • Public
  • Public/Protected
  • All
Menu

Edge class.

Hierarchy

Implements

Index

Constructors

constructor

  • Creates an instance of one of the subclasses of Topo. The entity must already exists in the geometry. You should not create new topo components using this constructor. Topology will be created for you when you create geometric objects, such as polylines and polymeshes.

    Parameters

    • kernel: Kernel
    • path: ITopoPathData

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

    Returns Edge

    The Topo object.

Properties

Protected _kernel

_kernel: Kernel

Protected _path

Methods

addToGroup

  • addToGroup(group: IGroup): boolean
  • Add this topo to a group.

    Parameters

    Returns boolean

    True if the topo was added, False is the topo was already in the group.

edgesSharedPoints

  • edgesSharedPoints(): IEdge[][]
  • Within the parent object, find all edges with the same two points as this edge. The order of the points is ignored. Returns an array containing two sub-arrays. 1) The wire edges, and 2) the face edges.

    Returns IEdge[][]

    An array containing the two sub-arrays of edges.

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

getGeom

getGeomType

getGroups

getLabel

  • getLabel(): string

getLabelCentroid

  • getLabelCentroid(): XYZ

getModel

getObj

  • Get the ID of the object to which this topo component belongs.

    Returns IObj

    The object ID number.

getObjID

  • getObjID(): number
  • Get the ID of the object to which this topo component belongs.

    Returns number

    The object ID number.

getTopoPath

getTopoPathStr

  • getTopoPathStr(): string

getVertices

getWireOrFace

next

  • Find the next edge in the sequence of edges in the wire or face.

    Returns IEdge

    The next edge object.

previous

  • Find the previous edge in the sequence of edges in the wire or face.

    Returns IEdge

    The previous edge object.

setAttribValue

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