2008/utils-x64/amodeler/samples/asdkbodyapp/asdkbodyobj/AsdkBody.cpp
////////////////////////////////////////////////////////////////////////////////
//
// Pseudo constructors
//
// Each of these envelopes a Facet Modeler member function that creates
// a solid (except for createFace, which creates a body with one face).
// Each should call Body::isValid after creation, unless NDEBUG is defined.
//

Pseudo constructors
Each of these envelopes a Facet Modeler member function that creates
a solid (except for createFace, which creates a body with one face).
Each should call Body::isValid after creation, unless NDEBUG is defined.
Pseudo constructors Each of these envelopes a Facet Modeler member function that creates a solid ( except for createFace which creates a body with one face ) . Each should call Body :: isValid after creation unless NDEBUG is defined .
void 
AsdkBody::createBox(const AcGePoint3d& p, const AcGeVector3d& vec)
{
	assertWriteEnabled();
    m_3dGeom = Body::box(*(Point3d*)&p, *(Vector3d*)&vec);
    if (debugMode())
        if (! m_3dGeom.isValid())
            throw eFail;
}
void AsdkBody :: createBox ( const AcGePoint3d & p , const AcGeVector3d & vec ) { assertWriteEnabled ( ) ; m_3dGeom = Body :: box ( * ( Point3d * ) & p , * ( Vector3d * ) & vec ) ; if ( debugMode ( ) ) if ( ! m_3dGeom . isValid ( ) ) throw eFail ; }
Pseudo constructors
Each of these envelopes a Facet Modeler member function that creates
a solid (except for createFace, which creates a body with one face).
Pseudo constructors Each of these envelopes a Facet Modeler member function that creates a solid ( except for createFace which creates a body with one face ) .