|
cgma
|
Public Member Functions | |
| SphereSurface (const Vector3d ¢er_p, double radius_p) | |
| virtual | ~SphereSurface () |
| virtual double | getFarthestExtentFromOrigin () const |
Protected Member Functions | |
| virtual iBase_EntityHandle | getHandle (bool positive, iGeom_Instance &igm, double world_size) |
Protected Attributes | |
| Vector3d | center |
| double | radius |
Definition at line 383 of file volumes.cpp.
| SphereSurface::SphereSurface | ( | const Vector3d & | center_p, |
| double | radius_p | ||
| ) | [inline] |
Definition at line 390 of file volumes.cpp.
:
SurfaceVolume(), center(center_p), radius(radius_p)
{}
| virtual SphereSurface::~SphereSurface | ( | ) | [inline, virtual] |
Definition at line 394 of file volumes.cpp.
{}
| virtual double SphereSurface::getFarthestExtentFromOrigin | ( | ) | const [inline, virtual] |
Implements SurfaceVolume.
Definition at line 396 of file volumes.cpp.
| virtual iBase_EntityHandle SphereSurface::getHandle | ( | bool | positive, |
| iGeom_Instance & | igm, | ||
| double | world_size | ||
| ) | [inline, protected, virtual] |
Implements SurfaceVolume.
Definition at line 401 of file volumes.cpp.
{
int igm_result;
iBase_EntityHandle sphere;
iGeom_createSphere( igm, radius, &sphere, &igm_result);
CHECK_IGEOM( igm_result, "making sphere" );
iGeom_moveEnt( igm, sphere, center.v[0], center.v[1], center.v[2], &igm_result );
CHECK_IGEOM( igm_result, "moving sphere" );
iBase_EntityHandle final_sphere = embedWithinWorld( positive, igm, world_size, sphere, false );
return final_sphere;
}
Vector3d SphereSurface::center [protected] |
Definition at line 386 of file volumes.cpp.
double SphereSurface::radius [protected] |
Definition at line 387 of file volumes.cpp.