1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-10 16:54:23 +02:00

add tri_bisectors

This commit is contained in:
Justin Lin
2020-02-23 15:45:26 +08:00
parent 4a2083d15b
commit ca9f4c7af3

View File

@@ -0,0 +1,10 @@
use <experimental/convex_center_p.scad>;
function tri_bisectors(points) =
let(
orthocentre = convex_center_p(points),
m1 = (points[0] + points[1]) / 2,
m2 = (points[1] + points[2]) / 2,
m3 = (points[2] + points[0]) / 2
)
[[orthocentre, m1], [orthocentre, m2], [orthocentre, m3]];