Class: Geometry

Class representing a geometric shape.

Extended by

Implements

  • Geometry

Constructors

new Geometry()

new Geometry(shape): Geometry

Creates an instance of Geometry.

Parameters

shape: TopoDS_Shape

The geometric shape.

Returns

Geometry )

Accessors

shape

get shape(): TopoDS_Shape

Gets the geometric shape.

set shape(shape): void

Sets the geometric shape.

Parameters

shape: TopoDS_Shape

The new geometric shape.

Returns

TopoDS_Shape

Implementation of

IGeometry.shape

Methods

changePlane()

changePlane(source, target): Geometry

Changes the plane of the geometric shape.

Parameters

source: Plane

The source plane.

target: Plane

The target plane.

Returns

Geometry

The geometry with the changed plane.

Implementation of

IGeometry.changePlane


delete()

delete(): void

Deletes the geometric shape.

Returns

void


getShape()

getShape(): TopoDS_Shape

Gets a copy of the geometric shape.

Returns

TopoDS_Shape

The copied shape.

Implementation of

IGeometry.getShape


setPlane()

setPlane(plane?): Geometry

Sets the plane for the geometric shape.

Parameters

plane?: Plane

The plane to set.

Returns

Geometry

The updated geometry.

Implementation of

IGeometry.setPlane