About Store Forum Documentation Contact



Post Reply 
making cube
Author Message
Rogus Offline
Member

Post: #1
making cube
After few fails with csg i decided to make geometry with quads , vertex by vertex. I have again problem with it.

I'm creating cube with 6 quads:

Code:
[...]
box_lod->parts[i].base.addVtx(Vec(-x_pos, y_pos, z_pos));
[...]
C VecI4 a(0, 1, 2, 3);
box_lod->parts[0].base.addQuad(a);
and it looks quite good (like a normal cube) till I must merge it with csg using SEL_OR (or SEL_SUB when i want to cut ). My blocks looks deformed, few tris are lost. I noticed the quad what i'm creating is two-sided.

And i have a question. How to make cube like in Blender or 3d Max?
When i'm using cube from 3d Max simple merging cubes using csg is fine.
09-20-2012 03:35 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: making cube
you can use a ready EE function for that:
MeshBase& create (C Box &box , UInt flag=0, Int resolution=-1 ); // create mesh as 3D box , 'flag'=VTX_FLAG
then you can inspect the members of the MeshBase class.
09-26-2012 01:04 PM
Find all posts by this user Quote this message in a reply
Post Reply