Go Premium for a chance to win a PS4. Enter to Win

x
Solved

# ASCII binary

Posted on 2013-06-09
Medium Priority
385 Views
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.

Thanks
binarystl.txt
0
Question by:ayha1999

LVL 84

Accepted Solution

David Johnson, CD, MVP earned 2000 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

0

LVL 7

Author Closing Comment

ID: 39246706
Thanks
0

## Featured Post

Question has a verified solution.

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

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
High user turnover can cause old/redundant user data to consume valuable space. UserResourceCleanup was developed to address this by automatically deleting user folders when the user account is deleted.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
###### Suggested Courses
Course of the Month9 days, 4 hours left to enroll