|
cgma
|
Public Member Functions | |
| CylinderSurface (axis_t axis_p, double radius_p) | |
| CylinderSurface (axis_t axis_p, double radius_p, double trans1, double trans2) | |
| virtual double | getFarthestExtentFromOrigin () const |
Protected Member Functions | |
| virtual iBase_EntityHandle | getHandle (bool positive, iGeom_Instance &igm, double world_size) |
Protected Attributes | |
| axis_t | axis |
| double | radius |
| Vector3d | center |
| bool | onaxis |
Definition at line 167 of file volumes.cpp.
| CylinderSurface::CylinderSurface | ( | axis_t | axis_p, |
| double | radius_p | ||
| ) | [inline] |
Definition at line 176 of file volumes.cpp.
| CylinderSurface::CylinderSurface | ( | axis_t | axis_p, |
| double | radius_p, | ||
| double | trans1, | ||
| double | trans2 | ||
| ) | [inline] |
Definition at line 180 of file volumes.cpp.
| virtual double CylinderSurface::getFarthestExtentFromOrigin | ( | ) | const [inline, virtual] |
Implements SurfaceVolume.
Definition at line 190 of file volumes.cpp.
| virtual iBase_EntityHandle CylinderSurface::getHandle | ( | bool | positive, |
| iGeom_Instance & | igm, | ||
| double | world_size | ||
| ) | [inline, protected, virtual] |
Implements SurfaceVolume.
Definition at line 195 of file volumes.cpp.
{
int igm_result;
iBase_EntityHandle cylinder;
iGeom_createCylinder( igm, 2.0 * world_size, radius, 0, &cylinder, &igm_result);
CHECK_IGEOM( igm_result, "making cylinder" );
if( axis == X ){
iGeom_rotateEnt( igm, cylinder, 90, 0, 1, 0, &igm_result );
CHECK_IGEOM( igm_result, "rotating cylinder (X)" );
}
else if( axis == Y ){
iGeom_rotateEnt( igm, cylinder, 90, 1, 0, 0, &igm_result );
CHECK_IGEOM( igm_result, "rotating cylinder (Y)" );
}
if( onaxis == false ){
iGeom_moveEnt( igm, cylinder, center.v[0], center.v[1], center.v[2], &igm_result);
CHECK_IGEOM( igm_result, "moving cylinder" );
}
iBase_EntityHandle final_cylinder = embedWithinWorld( positive, igm, world_size, cylinder, true );
return final_cylinder;
};
axis_t CylinderSurface::axis [protected] |
Definition at line 170 of file volumes.cpp.
Vector3d CylinderSurface::center [protected] |
Definition at line 172 of file volumes.cpp.
bool CylinderSurface::onaxis [protected] |
Definition at line 173 of file volumes.cpp.
double CylinderSurface::radius [protected] |
Definition at line 171 of file volumes.cpp.