• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
Triangle Calculator Function for OpenSCAD 3D Printer File Image 1
Triangle Calculator Function for OpenSCAD 3D Printer File Image 2
Triangle Calculator Function for OpenSCAD 3D Printer File Image 3
Triangle Calculator Function for OpenSCAD 3D Printer File Image 4
Triangle Calculator Function for OpenSCAD 3D Printer File Image 5
Triangle Calculator Function for OpenSCAD 3D Printer File Image 6
Triangle Calculator Function for OpenSCAD 3D Printer File Image 7
Triangle Calculator Function for OpenSCAD 3D Printer File Image 8
Triangle Calculator Function for OpenSCAD 3D Printer File Image 9
Triangle Calculator Function for OpenSCAD 3D Printer File Thumbnail 1
Triangle Calculator Function for OpenSCAD 3D Printer File Thumbnail 2
Triangle Calculator Function for OpenSCAD 3D Printer File Thumbnail 3
Triangle Calculator Function for OpenSCAD 3D Printer File Thumbnail 4
Triangle Calculator Function for OpenSCAD 3D Printer File Thumbnail 5
Triangle Calculator Function for OpenSCAD 3D Printer File Thumbnail 6
Triangle Calculator Function for OpenSCAD 3D Printer File Thumbnail 7
Triangle Calculator Function for OpenSCAD 3D Printer File Thumbnail 8
Triangle Calculator Function for OpenSCAD 3D Printer File Thumbnail 9

Triangle Calculator Function for OpenSCAD

SavageRodent avatarSavageRodent

August 13, 2023

thingiverse-icon
DescriptionCommentsTags

Description

Triangle Calculator

The “trical” function is heavily based on the module triangle_solver by lar3ry, https://www.thingiverse.com/thing:4859001

WHAT DOSE IT DO?

The trical() function takes three known pieces of information about a triangle and uses them to calculate the remaining sides and angles.

The function returns a vector containing six numbers, these are the three internal angles and the lengths of the three sides.

[angle_A, angle_B, angle_C, side_a, side_b, side_c]

This function makes it quick and easy to perform trigonometry calculations. The returned data can be used for things such as position, rotating and scaling of the component parts of whatever you're designing.

HOW TO USE IT:

Input three known pieces of information about the triangle, at least one of which must be a side.

Input values don't have to be labelled, but if they're not, you must put them in order, with the unknown values input as "0" or "undef".

trical(C=90, a=3, b=4); valid input

trical(0, 0, 90, 3, 4, 0); valid input

ADDITIONAL TOOLS:

The trical .scad file also contains two additional tools

tripoints()

This is a function that takes the returned vector from trical() and calculates the [x,y] position of the corners relative to each other, and returns them in this form [A=[x,y], B=[x,y], C=[x,y],]

tribuild()

This is a module that takes the returned vector from trical() and uses it to create a 2D triangle.

ADDITIONAL INFORMATION:

The expiation above is just is the abridged version. The full text can be found inside scad file itself.

DEMONSTRATIONS:

In addition to the .scad file for the trical() function itself, I have included a few interactive example files that demonstrate the sort of stuff you can use the trical() function for. For ease of use open the Customizer window .

License:

Creative Commons - Attribution

Related Models

Tube cutter hand tool trapezoid blade preview image

Tube cutter hand tool trapezoid blade

PredatorJr profile image

PredatorJr

3,387

(火车轨道合集)中连接件进行了尺寸修正并进行建模(OpenSCAD train track library) preview image

(火车轨道合集)中连接件进行了尺寸修正并进行建模(OpenSCAD train track library)

模型诗人 profile image

模型诗人

15

Elliptical-blade NACA airfoil propeller library preview image

Elliptical-blade NACA airfoil propeller library

Amatulic profile image

Amatulic

2,195

Car plate Keychain Creator [OpenSCAD] preview image

Car plate Keychain Creator [OpenSCAD]

Yarn 🎖️ profile image

Yarn 🎖️

7,057

ESP8266 based modules models library preview image

ESP8266 based modules models library

DonJuanito profile image

DonJuanito

706

Customizable garden labels preview image

Customizable garden labels

rondel profile image

rondel

572