AnyCAD Rapid SDK  2021
The Rapid CAD SDK
Public Member Functions | Protected Member Functions | Static Protected Member Functions | List of all members
TopoShapeProperty Class Reference

Public Member Functions

synchronized void delete ()
 
 TopoShapeProperty (TopoShape shape)
 
boolean SetShape (TopoShape shape)
 
double EdgeLength ()
 
double SurfaceArea ()
 
double SolidVolume ()
 
GPnt CenterOfMass ()
 
void Add (TopoShapeProperty item, double density)
 
GMat MatrixOfInertia ()
 
GXYZ StaticMoments ()
 
double MomentOfInertia (GAx1 A)
 
double RadiusOfGyration (GAx1 A)
 
PrincipalProps PrincipalProperties ()
 

Protected Member Functions

 TopoShapeProperty (long cPtr, boolean cMemoryOwn)
 
void swigSetCMemOwn (boolean own)
 
void finalize ()
 

Static Protected Member Functions

static long getCPtr (TopoShapeProperty obj)
 

Detailed Description


Get the Geometry property

Member Function Documentation

void TopoShapeProperty.Add ( TopoShapeProperty  item,
double  density 
)

Add sub shape property

Parameters
itemthe sub information.
densitythe density.
GPnt TopoShapeProperty.CenterOfMass ( )

Compute center of the mass.

Returns
the center position.
double TopoShapeProperty.EdgeLength ( )

Compute the length of all edges.

Returns
the length
GMat TopoShapeProperty.MatrixOfInertia ( )

Get the matrix of inertia. It is a symmetrical matrix.

Returns
the matrix of inertia.
double TopoShapeProperty.MomentOfInertia ( GAx1  A)

computes the moment of inertia of the material system.

Parameters
Athe the axis.
Returns
the moment of inertia.
PrincipalProps TopoShapeProperty.PrincipalProperties ( )

Get the principal properties

Returns
the Principal Properties
double TopoShapeProperty.RadiusOfGyration ( GAx1  A)

Get the radius of gyration of the current system.

Parameters
Athe the axis.
Returns
the radius.
boolean TopoShapeProperty.SetShape ( TopoShape  shape)

Set the TopoShape to compute

Parameters
shapethe TopoShape
double TopoShapeProperty.SolidVolume ( )

Compute the volume of all solids.

Returns
the volume.
GXYZ TopoShapeProperty.StaticMoments ( )

Get Ix, Iy, Iz, the static moments of inertia of the
current system; i.e. the moments of inertia about the
three axes of the Cartesian coordinate system.

double TopoShapeProperty.SurfaceArea ( )

Compute the area of all surfaces.

Returns
the area