11.4 Entity
The base class of all the geometry and mesh types. More...
#include <CubitInterfaceEx.hpp>
11.4.1 Inheritance diagram for Entity:
| |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| |
| |
| |
| |
import cubit |
|
br = cubit.brick(1,1,1) |
cubit.scale(br,2) |
cubit.cmd('delete body 1') |
std::array<double,6> bounding_box ( )
std::array<double,6> b_box = entity->bounding_box(); |
b_box = entity.bounding_box() |
Returns:
The bounding box as a vector (or list) where the indices correspond to the values as follows:
0 - minimum x value
1 - minimum y value
2 - minimum z value
3 - maximum x value
4 - maximum y value
5 - maximum z value
center_point()
std::array<double,3> center_point ( )
std::array<double,3> center = entity->center_point(); |
center = entity.center_point() |
Returns:
The center point as a vector (or list) where the indices correspond to the values as follows:
0 - x value
1 - y value
2 - z value
id()
int id ( )
int id = entity->id(); |
id = entity.id() |
Returns:
The id of the Entity
is_transparent() [1/2]
int is_transparent ( )
int trans = entity->is_transparent(); |
trans = entity.is_transparent() |
Returns:
The current transparency state of the Entity (1 if transparent, 0 if not)
is_transparent() [2/2]
void is_transparent ( int transparency_flag)
entity->is_transparent(1); |
entity.is_transparent(1) |
|
|
|
int is_visible ( )
int vis = entity->is_visible(); |
vis = entity.is_visible() |
Returns:
The current visiblity state of the Entity (1 if visible, 0 if not)
is_visible() [2/2]
void is_visible ( bool visibility_flag)
entity->is_visible(1); |
entity.is_visible(1) |
|
|
|
void set_transparent ( int transparency_flag)
entity->set_transparent(1); |
entity.set_transparent(1) |
|
|
|
void set_visible ( bool visibility_flag)
entity->set_visible(1); |
entity.set_visible(1) |
|
|
|