discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Re: [OpenSCAD] My polyhedron() code doesn't work

R
runsun
Sun, Jul 12, 2015 10:10 PM

polyhedron( points = [ [0, 0, 0], [0, 1, 0], [1, 0, 0], [0, 0, 1] ]
, faces = [ [0, 1, 2], [0, 1, 3], [0, 3, 2], [1, 2, 3] ] );


$  Runsun Pan, PhD

$ -- OpenScad_DocTest ( Thingiverse ), faces , Offliner

$ -- hash parameter model: here , here

$ -- Linux Mint 17.1 Rebecca x64  + OpenSCAD 2015.03.15/2015.04.01.nightly

--
View this message in context: http://forum.openscad.org/My-polyhedron-code-doesn-t-work-tp13126p13127.html
Sent from the OpenSCAD mailing list archive at Nabble.com.

polyhedron( points = [ [0, 0, 0], [0, 1, 0], [1, 0, 0], [0, 0, 1] ] , faces = [ [0, 1, 2], [0, 1, 3], [0, 3, 2], [1, 2, 3] ] ); ----- $ Runsun Pan, PhD $ -- OpenScad_DocTest ( Thingiverse ), faces , Offliner $ -- hash parameter model: here , here $ -- Linux Mint 17.1 Rebecca x64 + OpenSCAD 2015.03.15/2015.04.01.nightly -- View this message in context: http://forum.openscad.org/My-polyhedron-code-doesn-t-work-tp13126p13127.html Sent from the OpenSCAD mailing list archive at Nabble.com.
PF
Peter Falke
Mon, Jul 13, 2015 4:48 AM

Do a F5, then select from View "Thrown Together", and look from below,
youll see a magenta face.Thats cure cue. The winding order for the bottom
polygon is wrong:
.change:[0, 1, 2] to [0, 2, 1]

2015-07-13 0:10 GMT+02:00 runsun runsun@gmail.com:

polyhedron( points = [ [0, 0, 0], [0, 1, 0], [1, 0, 0], [0, 0, 1] ]
, faces = [ [0, 1, 2], [0, 1, 3], [0, 3, 2], [1, 2, 3] ] );


$  Runsun Pan, PhD

$ -- OpenScad_DocTest ( Thingiverse ), faces , Offliner

$ -- hash parameter model: here , here

$ -- Linux Mint 17.1 Rebecca x64  + OpenSCAD 2015.03.15/2015.04.01.nightly

--
View this message in context:
http://forum.openscad.org/My-polyhedron-code-doesn-t-work-tp13126p13127.html
Sent from the OpenSCAD mailing list archive at Nabble.com.


OpenSCAD mailing list
Discuss@lists.openscad.org
http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org

--
stempeldergeschichte@googlemail.com karsten@rohrbach.de

P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist:
Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu
schreiben.
Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen.

P.S. In case my e-mail is shorter than you enjoy:
I am currently trying short replies instead of no replies at all.
Please let me know, if you like to read more.

Enjoy!

Do a F5, then select from View "Thrown Together", and look from below, youll see a magenta face.Thats cure cue. The winding order for the bottom polygon is wrong: .change:[0, 1, 2] to [0, 2, 1] 2015-07-13 0:10 GMT+02:00 runsun <runsun@gmail.com>: > polyhedron( points = [ [0, 0, 0], [0, 1, 0], [1, 0, 0], [0, 0, 1] ] > , faces = [ [0, 1, 2], [0, 1, 3], [0, 3, 2], [1, 2, 3] ] ); > > > > > ----- > > $ Runsun Pan, PhD > > $ -- OpenScad_DocTest ( Thingiverse ), faces , Offliner > > $ -- hash parameter model: here , here > > $ -- Linux Mint 17.1 Rebecca x64 + OpenSCAD 2015.03.15/2015.04.01.nightly > > > > > -- > View this message in context: > http://forum.openscad.org/My-polyhedron-code-doesn-t-work-tp13126p13127.html > Sent from the OpenSCAD mailing list archive at Nabble.com. > > _______________________________________________ > OpenSCAD mailing list > Discuss@lists.openscad.org > http://lists.openscad.org/mailman/listinfo/discuss_lists.openscad.org > -- stempeldergeschichte@googlemail.com <karsten@rohrbach.de> P.S. Falls meine E-Mail kürzer ausfällt als Dir angenehm ist: Ich probiere gerade aus kurze Antworten statt gar keine Antworten zu schreiben. Wenn Du gerne mehr lesen möchtest, dann lass es mich bitte wissen. P.S. In case my e-mail is shorter than you enjoy: I am currently trying short replies instead of no replies at all. Please let me know, if you like to read more. Enjoy!