Community
Hi,
I wanted to get the corner points of the entity with a given angle (boundingbox with angle in WCS).
so i have set up ucs as below code however these points are still in ortho form:
AcdbEntity* ent...
//WCS
AcGePoint3d origin = PT0;
AcGeVector3d xDirection =polar(PT0,pi/6,1)-PT0;
AcGeVector3d yDirection =polar(PT0, pi/6 + pi/2, 1) - PT0;
AcGeVector3d zDirection =xDirection.crossProduct(yDirection);
AcGeMatrix3d matrix;
matrix.setCoordSystem(origin, xDirection, yDirection, zDirection);
acedSetCurrentUCS(matrix); //set to UCS
AcDbExtents extents;
ent->getGeomExtents(extents);
..
acedSetCurrentUCS(m); //WCS
How do I fix this code?
Thanks you!
Solved! Go to Solution.
Solved by artc2. Go to Solution.
Can't find what you're looking for? Ask the community or share your knowledge.