discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] Color a 3D triangle

P
Parkinbot
Sun, Jun 3, 2018 12:35 AM

You can do that by (ab)using polyhedron. Don't expect the result to be
printable.

x=[[1,2,3], [-10,3,-1], [0,0,0]];
color("red")
polyhedron(x, [[0,1,2]]);

--
Sent from: http://forum.openscad.org/

You can do that by (ab)using polyhedron. Don't expect the result to be printable. x=[[1,2,3], [-10,3,-1], [0,0,0]]; color("red") polyhedron(x, [[0,1,2]]); -- Sent from: http://forum.openscad.org/
MV
Maurice van Peursem
Sun, Jun 3, 2018 8:03 AM

That seems to work fine and is just what I need, thanks!

Maurice

You can do that by (ab)using polyhedron. Don't expect the result to be
printable.

x=[[1,2,3], [-10,3,-1], [0,0,0]];
color("red")
polyhedron(x, [[0,1,2]]);

That seems to work fine and is just what I need, thanks! Maurice >You can do that by (ab)using polyhedron. Don't expect the result to be >printable. > >x=[[1,2,3], [-10,3,-1], [0,0,0]]; >color("red") >polyhedron(x, [[0,1,2]]);