Software to draw specific triangles?

AI Thread Summary
A user is seeking software to create 2D triangles for a project involving 3D models, specifically looking for a solution that allows input of the three edge lengths without needing to calculate height or area. The user has encountered limitations with existing software that requires these additional calculations. An online interactive triangle calculator was found but lacks the ability to print at scale. Suggestions include exploring printer programming languages like Postscript and PCL for precise control over printed output. A programmable calculator or spreadsheet can be used to derive the necessary height and area for triangle creation. Ultimately, the user discovered that "Driving Directions for SketchUp" meets their needs for drawing the specified triangles.
morbank
Messages
4
Reaction score
0
Hello, I am working on a project that involves using 2D triangles to build 3D models and I am looking for software that will allow me to draw 2D triangles based on the triangles 3 edge lengths (ex: 4 cm x 5 cm x 3 cm). Most of the software I have found requires knowing either the triangles height or area (which I don't have) to draw the specific triangle. Because I need to draw several hundred triangles for this project I was hoping someone here might know of a solution that would allow me to input just the triangles 3 edge lengths and avoid needing to calculate each triangles height as well. I will also need to be able to print out the triangles at scale.

Thanks,
morbank
 
Physics news on Phys.org
I found this online interactive triangle calculator that allows you to input the 3 edge lengths but it doesn't use inches or centimeters so I am unable to print the triangles at scale. Anyone else have some leads?

morbank
 
Some printers have built-in language interpreters. Postscript(tm) is one. PCL(tm) is Hp's. You can learn a bit and write programs for direct execution by the printer to control the bits you put on paper. I used to have a 75 pound Postscript printer in the corner and when I just could not get a graphic to be exactly the way I needed I would write a page or two of Postscript code to pump out the piece of paper I wanted.

I've never looked at PCL but I think it is very likely that you could write a handful of lines to generate exactly the triangle that you want to see.

I have found the advantage of writing raw page description code directly to the printer is that there are at least several fewer layers of software, all of which thinking they know better than you what should actually be sent to the next layer. You have more responsibility for writing exactly what you want painted, but you get what you ask for down to the individual pixel resolution.
 
Last edited:
Thanks Bill, I'll take a look.

morbank
 
morbank said:
Most of the software I have found requires knowing either the triangles height or area (which I don't have) to draw the specific triangle.

Those are easy to find with a programmable calculator or a spreadsheet.

Area ##\sqrt{s(s-a)(s-b)(s-c)}## where ##s = (a + b + c)/2##

and then height = ##2 \times \text{area} / \text{base}##
 
Driving Directions for SketchUp does exactly what I was looking for! Thanks for everyones help.

morbank
 
Back
Top