|
Cubit Python API 17.07
|
Defines a body object that mostly parallels Cubit's Body class. More...
Public Member Functions |
|
| def | get_mass_props (self) |
| Get the center of gravity of the Body. More... |
|
| def | is_sheet_body (self) |
| Get whether the Body is a sheet body or not. More... |
|
| def | point_containment (self, loc_in) |
| Determine point containment relative to the Body. More... |
|
| def | volume (self) |
| Get the volume of the Body. More... |
|
Public Member Functions inherited from GeomEntity |
|
| def | bodies (self) |
| Retrieve bodies contained within the geometry entity. More... |
|
| def | curves (self) |
| Retrieve curves (edges) associated with the geometry entity. More... |
|
| def | dimension (self) |
| Get the topological dimension of the geometry entity. More... |
|
| def | entity_name (self) |
| Retrieve the primary name of the geometry entity. More... |
|
| def | entity_names (self) |
| Retrieve all names assigned to the geometry entity. More... |
|
| def | is_meshed (self) |
| Returns the current mesh state of the GeomEntity. More... |
|
| def | is_transparent (self) |
| Get the transparency state of the geometry entity. More... |
|
| def | is_visible (self) |
| Get the visibility state of the geometry entity. More... |
|
| def | mesh (self) |
| Generates mesh on a GeomEntity and verifies meshing status. More... |
|
| def | num_names (self) |
| Get the count of names assigned to the geometry entity. More... |
|
| def | remove_entity_name (self, name) |
| Remove a specific name from the geometry entity. More... |
|
| def | remove_entity_names (self) |
| Remove all non-default names from the geometry entity. More... |
|
| def | remove_mesh (self) |
| Remove any mesh associated with the geometry entity. More... |
|
| def | set_entity_name (self, name) |
| Assign a name to the geometry entity. More... |
|
| def | set_transparent (self, transparency_flag) |
| Set the transparency state of the geometry entity. More... |
|
| def | set_visible (self, visibility_flag) |
| Set and verify the visibility state of the geometry entity. More... |
|
| def | smooth (self) |
| Smooths the mesh on a GeomEntity to improve element quality. More... |
|
| def | surfaces (self) |
| Retrieve surfaces associated with the geometry entity. More... |
|
| def | vertices (self) |
| Retrieve vertices (points) associated with the geometry entity. More... |
|
| def | volumes (self) |
| Retrieve volumes associated with the geometry entity. More... |
|
Public Member Functions inherited from Entity |
|
| def | bounding_box (self) |
| Returns the axis-aligned bounding box of the Entity. More... |
|
| def | center_point (self) |
| Returns the geometric center point of the Entity. More... |
|
| def | id (self) |
| Retrieves the unique identifier of the Entity. More... |
|
Defines a body object that mostly parallels Cubit's Body class.
| def get_mass_props | ( | self | ) |
Get the center of gravity of the Body .
Computes and returns the mass properties of this Body , specifically the center of gravity coordinates.
.. code-block:: python
@n return type of : std:: array< double,3 >
| def is_sheet_body | ( | self | ) |
Get whether the Body is a sheet body or not.
Determines if this Body represents a sheet (2D) geometry rather than a volume (3D).
.. code-block:: python
@n return type of : boolean
| def point_containment | ( | self, | |
| loc_in | |||
| ) |
Determine point containment relative to the Body .
Checks whether a given point is inside, on, or outside this Body
.. code-block:: python
@n type of loc_in: std::array< double,3 >, in
| loc_in | A three-element array specifying the point coordinates (x, y, z). return type of : int |
| def volume | ( | self | ) |
Get the volume of the Body .
Notes This function is only available on Body objects.
Returns the computed geometric volume of this Body.
.. code-block:: python
@n return type of : float