Solved

ASCII binary

Posted on 2013-06-09
3
353 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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
Article by: Ivo
Anonymous Types in C# by Ivo Stoykov Anonymous Types are useful when  we do not need to follow usual work-flow -- creating object of some type, assign some read-only values and then doing something with them. Instead we can encapsulate this read…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

772 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