Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • OCCTSolid

Index

Constructors

constructor

  • new OCCTSolid(occWorkerManager: OCCTWorkerManager): OCCTSolid
  • Parameters

    • occWorkerManager: OCCTWorkerManager

    Returns OCCTSolid

Methods

createBox

  • Creates OpenCascade Box

    group

    primitives

    shortname

    box

    drawable

    true

    Parameters

    • inputs: BoxDto

      Box size and center

    Returns Promise<TopoDSSolidPointer>

    OpenCascade Box

createBoxFromCorner

  • Creates OpenCascade Box from corner

    group

    primitives

    shortname

    box corner

    drawable

    true

    Parameters

    Returns Promise<TopoDSSolidPointer>

    OpenCascade Box

createCone

  • Creates OpenCascade Cone

    group

    primitives

    shortname

    cone

    drawable

    true

    Parameters

    Returns Promise<TopoDSSolidPointer>

    OpenCascade cone shape

createCube

  • Creates OpenCascade Cube

    group

    primitives

    shortname

    cube

    drawable

    true

    Parameters

    • inputs: CubeDto

      Cube size and center

    Returns Promise<TopoDSSolidPointer>

    OpenCascade Cube

createCylinder

  • Creates OpenCascade Cylinder

    group

    primitives

    shortname

    cylinder

    drawable

    true

    Parameters

    Returns Promise<TopoDSSolidPointer>

    OpenCascade Cylinder

createCylindersOnLines

  • Creates OpenCascade Cylinders on simple bit by bit lines represented by two points

    group

    primitives

    shortname

    cylinders on lines

    drawable

    true

    Parameters

    Returns Promise<TopoDSSolidPointer[]>

    OpenCascade Cylinder

createSphere

  • Creates OpenCascade Sphere

    group

    primitives

    shortname

    sphere

    drawable

    true

    Parameters

    Returns Promise<TopoDSSolidPointer>

    OpenCascade Sphere

filterSolidPoints

  • Filters collection of points based on relationship with the solid. You can choose whether to output in, on or out points.

    group

    filter

    shortname

    filter solid points

    drawable

    true

    Parameters

    Returns Promise<Point3[]>

    filtered points

fromClosedShell

  • Creates Solid From shell that must be closed

    group

    from

    shortname

    solid from closed shell

    drawable

    true

    Parameters

    Returns Promise<TopoDSSolidPointer>

    OpenCascade Solid

getSolidCenterOfMass

  • Get solid center of mass

    group

    get

    shortname

    center of mass

    drawable

    true

    Parameters

    Returns Promise<Point3>

    center of mass point

getSolidSurfaceArea

  • Get solid surface area

    group

    get

    shortname

    area

    drawable

    false

    Parameters

    Returns Promise<number>

    Surface area

getSolidVolume

  • Get solid volume

    group

    get

    shortname

    volume

    drawable

    false

    Parameters

    Returns Promise<number>

    volume

getSolids

  • Gets the solids of the shape in a list

    group

    get

    shortname

    solids

    drawable

    true

    Parameters

    Returns Promise<TopoDSSolidPointer[]>

    OpenCascade solids array

getSolidsCentersOfMass

  • Get centers of mass of solids

    group

    get

    shortname

    centers of mass

    drawable

    true

    Parameters

    Returns Promise<Point3[]>

    Points indicating centers of mass

getSolidsVolumes

  • Get solids volumes

    group

    get

    shortname

    volumes

    drawable

    false

    Parameters

    Returns Promise<number[]>

    volumes

Generated using TypeDoc