Cubit Python API 16.18
Public Member Functions | Protected Attributes
Entity

The base class of all the geometry and mesh types. More...

#include <CubitInterfaceEx.hpp>

Inheritance diagram for Entity:
GeomEntity Body Curve Surface Vertex Volume

Public Member Functions

  Entity ()
 
  Entity (CubitEntity *entity_ptr)
 
  Entity (Entity const &copy_from)
 
  ~Entity ()
 
std::array< double, 6 >  bounding_box ()
  Get the bounding box of the Entity.
 
std::array< double, 3 >  center_point ()
  Get the center point of the Entity.
 
void  destroy_cubit_entity ()
 
CubitEntity *  entity_ptr ()
 
int  id ()
  Get the id of the Entity.
 
Entity operator= (const Entity &rhs)
 

Protected Attributes

CubObserver *  cubitWatcher
 
CubitEntity *  mEntityPtr
 

Detailed Description

The base class of all the geometry and mesh types.

import cubit
br = cubit.brick(1,1,1)
cubit.scale(br,2)
cubit.cmd('delete body 1' )

Constructor & Destructor Documentation

◆ ~Entity()

~Entity ( )

◆ Entity() [1/3]

Entity ( )

◆ Entity() [2/3]

Entity ( CubitEntity *  entity_ptr )

◆ Entity() [3/3]

Entity ( Entity const &  copy_from )

Member Function Documentation

◆ bounding_box()

std::array< double, 6 > bounding_box ( )

Get the bounding box of the Entity .

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

Get the center point of the Entity .

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

◆ destroy_cubit_entity()

void destroy_cubit_entity ( )

◆ entity_ptr()

CubitEntity * entity_ptr ( )

◆ id()

int id ( )

Get the id of the Entity .

intid = entity->id();
id = entity.id()
Returns
The id of the Entity

◆ operator=()

Entity & operator= ( const Entity rhs )

Member Data Documentation

◆ cubitWatcher

CubObserver* cubitWatcher
protected

◆ mEntityPtr

CubitEntity* mEntityPtr
protected