.NET

Reply
Contributor
wein3967
Posts: 17
Registered: ‎02-29-2012
Message 11 of 11 (46 Views)

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.

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.