Solved

ASCII binary

Posted on 2013-06-09
3
367 Views
Last Modified: 2013-06-13
Hi,

Could anyone please modify the attached c# code to accept ASCII stl file input? If I input two 50mm cube and sphere, the result is

cube: Volume: 125 cubic cm
sphere: 23.946271641 cubic cm

I want to return same result as found in www.quickparts.com for volume calculation and also to return x, y, and z values (I can post another question for this.) Every calculation as based on box instead of the actual volume.

Please help.

Thanks
binarystl.txt
0
Comment
Question by:ayha1999
3 Comments
 
LVL 80

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 39233760
Rectangle  is easy = Length x width x height
Elliptical volume = (Pi * Diameter #1 * Diameter #2 * length) / 4
Triangle volume = (base * height * length) /2

https://docs.google.com/file/d/0B542q8KsuQuEUkpRbVdPOU5iMlk/edit?usp=sharing
0
 
LVL 7

Author Closing Comment

by:ayha1999
ID: 39246706
Thanks
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question