OCCT-Light 0.1
C ABI and C++ veneer for multi-language CAD workflows
Loading...
Searching...
No Matches
occtl_graph_mass_properties Struct Reference

#include <occtl_topo_build.h>

Collaboration diagram for occtl_graph_mass_properties:

Public Attributes

double linear_length
 
double surface_area
 
double volume
 
double mass
 
occtl_point3_t centre_of_mass
 
double inertia [9]
 

Detailed Description

Combined OCCT mass-property value computed for a graph node.

linear_length is the total curve length of edges in the shape, surface_area is the total face area, and volume is the signed solid volume. mass uses unit density and follows the highest non-zero dimensional property: volume, then area, then length. The inertia matrix is row-major, about centre_of_mass, in the global XYZ frame.

Member Data Documentation

◆ centre_of_mass

occtl_point3_t occtl_graph_mass_properties::centre_of_mass

Centre of mass for mass.

◆ inertia

double occtl_graph_mass_properties::inertia[9]

Row-major 3x3 inertia matrix.

◆ linear_length

double occtl_graph_mass_properties::linear_length

Total edge length.

◆ mass

double occtl_graph_mass_properties::mass

Unit-density mass for the highest non-zero dimension.

◆ surface_area

double occtl_graph_mass_properties::surface_area

Total face area.

◆ volume

double occtl_graph_mass_properties::volume

Signed solid volume.


The documentation for this struct was generated from the following file: