Solved

ASCII binary

Posted on 2013-06-09
3
357 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 78

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: Ivo
C# And Nullable Types Since 2.0 C# has Nullable(T) Generic Structure. The idea behind is to allow value type objects to have null values just like reference types have. This concerns scenarios where not all data sources have values (like a databa…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

920 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now