17 Posts
0 Kudos
Registered: ‎02-29-2012
Post 11 of 11

Re: Identify Solid3d Object as Box or Cylinder

02-20-2014 06:47 AM in reply to: dgorsman

The new system seems to be working effectively, right now. The code is essentailly a two step process and is designed to handle our older AutoCAD models as well as future models from outside our usual CAD department. The first step uses the Complex, Edge, and Face counts (via Brep) to identify if the solid is a Box or Cylinder. The second step uses the solid identification in step 1 along with a ratio of the solid's bounding box to the solid's volume. The ratio for orthogonal boxes is 1 and pi/4 for orthogonal cylinders. I implemented a tolerance to handle small rotations and small decimal deviations. However, for the future, we may try to implement our own drawing tools so we can potentially tag and specify shape data when solids are created. Thanks to all for your input.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post