How to create a normal vector from a set of points using ObjectARX?

By Gopinath Taget

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

Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading