AnyCAD Rapid API 2023
Help you to create a better world!
TopoShapeProperty Class Reference

Public Member Functions

 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 ()
 

Detailed Description

<>
Get the Geometry property

Member Function Documentation

◆ Add()

void TopoShapeProperty.Add ( TopoShapeProperty  item,
double  density 
)

Add sub shape property

Parameters
itemthe sub information.
densitythe density.

◆ CenterOfMass()

GPnt TopoShapeProperty.CenterOfMass ( )

Compute center of the mass.

Returns
the center position.

◆ EdgeLength()

double TopoShapeProperty.EdgeLength ( )

Compute the length of all edges.

Returns
the length

◆ MatrixOfInertia()

GMat TopoShapeProperty.MatrixOfInertia ( )

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

Returns
the matrix of inertia.

◆ MomentOfInertia()

double TopoShapeProperty.MomentOfInertia ( GAx1  A)

computes the moment of inertia of the material system.

Parameters
Athe the axis.
Returns
the moment of inertia.

◆ PrincipalProperties()

PrincipalProps TopoShapeProperty.PrincipalProperties ( )

Get the principal properties

Returns
the Principal Properties

◆ RadiusOfGyration()

double TopoShapeProperty.RadiusOfGyration ( GAx1  A)

Get the radius of gyration of the current system.

Parameters
Athe the axis.
Returns
the radius.

◆ SetShape()

boolean TopoShapeProperty.SetShape ( TopoShape  shape)

Set the TopoShape to compute

Parameters
shapethe TopoShape

◆ SolidVolume()

double TopoShapeProperty.SolidVolume ( )

Compute the volume of all solids.

Returns
the volume.

◆ StaticMoments()

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.

◆ SurfaceArea()

double TopoShapeProperty.SurfaceArea ( )

Compute the area of all surfaces.

Returns
the area