www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Baune on June 11, 2010, 01:34:50 pm

Title: How to make your own geometry ?
Post by: Baune on June 11, 2010, 01:34:50 pm
Hello

I can see that you can make standard primitives but how do you setup your own geometry using your own vertices-arrays ?

Thanks alot

Title: Re: How to make your own geometry ?
Post by: EgonOlsen on June 11, 2010, 09:56:01 pm
Either use one of the Object3D.addTriangle(...)-methods or try Object3D's (http://www.jpct.net/doc/com/threed/jpct/Object3D.html) bulk data constructor if you want it on a lower level.

Edit: I'm unable to set a link directly to the docs of this constructor...the board software somehow can't handle the anchor... ???
Title: Re: How to make your own geometry ?
Post by: Baune on June 11, 2010, 10:16:41 pm
Thanks, that should do it.