.NET

.NET

Reply
Contributor
wein3967
Posts: 17
Registered: ‎02-29-2012
Message 11 of 11 (56 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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.