(Open Design Alliance, ODA), 10-11 . C3D Labs, ODA, .
3D- , . , ; , , .
, . , , . .
: , . .
, , . , .
, DWG/DXF, Open Design Alliance (ODA), ModelSpace. Db3dSolid. SAT, save as text; ACIS Spatial.
, . . , .
, - , .
3D- Teigha
, , , , DWG. , , , ., Teigha 3D-, OdDb3dSolid. , , : , .
, , . API Teigha , :
OdResult OdDb3dSolid::booleanOper(OdDb::BoolOperType operation, OdDb3dSolid* solid);
: , .
namespace OdDb
{
enum BoolOperType
{
kBoolUnite = 0,
kBoolIntersect = 1,
kBoolSubtract = 2
};
}
, (CSG). , : , , .
Teigha :
void createBox( double xLen, double yLen, double zLen );
void createFrustum( double height, double xRadius, double yRadius, double topXRadius );
void createSphere( double radius );
void createWedge( double xLen, double yLen, double zLen );
void createTorus( double majorRadius, double minorRadius );
. , , , . : 3 4: .
locMatr = OdGeMatrix3d::rotation( OdaPI2, OdGeVector3d::kXAxis ) * OdGeMatrix3d::translation( OdGeVector3d::kXAxis * 100.0 );
///...
pSolid->transformBy(locMatr);
CSG : , , . , , . : . , . Teigha :
OdResult extrude(const OdDbRegion* region, double height, double taper, bool isSolid = true);
OdResult revolve(const OdDbRegion* pRegion, const OdGePoint3d& axisPoint, const OdGeVector3d& axisDir, double angleOfRevolution);
OdResult extrudeAlongPath(const OdDbRegion* region, const OdDbCurve* path, double taperAngle = 0.0, bool isSolid = true);
API, , .
3D- Teigha
(CSG) , . , , . : - . . . , - ., , . ; , , , , . , , , .
, ,
, , .
, , , , .
OdResult filletEdges( const OdArray
const OdGeDoubleArray& radius,
const OdGeDoubleArray& startSetback,
const OdGeDoubleArray& endSetback );
.
, : DWG. - : SAT- , SAT- .
Teigha Spatial. , Teigha , , ACIS .
C3D Modeler C3D Converter. , SAT C3D, ACIS. . Teigha: , C3D Modeler Teigha. C3D Toolkit Open Design Alliance, . Teigha C3D ACIS.
, , API Teigha. , . , , , , , . , , .
: , . , , , . , , , . , , - Teigha.
, - .
Teigha .dwg, .dgn, .prc, .rvt, .rfa .pdf , . , . : C++, .NET Java.
Teigha / Open Design Alliance.
Teigha Open Design Alliance. .
OdResult chamferEdges( const OdArray
const OdDbSubentId& baseFaceSubentId,
double baseDist,
double otherDist );
OdResult shellBody( const OdArray
double offsetDistance );
Teigha
Teigha . -.
, - . .
Teigha
Teigha , CAD-, , .