Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ASCII binary

Posted on 2013-06-09
3
Medium Priority
?
382 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 83

Accepted Solution

by:
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

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

Author Closing Comment

by:ayha1999
ID: 39246706
Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…

721 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