How can you build the plane that contains an array of points in order to get the normal direction? The following geometric utility does this:
Adesk::Boolean obtainNormal( AcGePoint3dArray &wcsPts, AcGeVector3d &normal ) { AcGeVector3d xAxis = AcGeVector3d::kIdentity; normal = AcGeVector3d::kIdentity; int nPts = wcsPts.length(); for( int i=0; i

Leave a Reply