Vertex control Implementation - leetaeju/VenusTouch GitHub Wiki

Vertex control

Modeling with pre-made blocks is pretty limited.
So we developed vertex control system for more variation.

Pre-processing

We uses vertex, triangle and normal information that are used in rendering.
Pre-processing them like removing duplication, non-edge lines.

A simple cube looks containing 8 vertices.
But in fact, the cube has 24 vertices, because each face has its own normal vector.
So for one vertex, it needs 3 normals. Therefore 3 vertices are in same position.

We have to remove these duplicated normal.

After then, create controllable, editable vertices and lines.
Once user change these elements, we update rendering elements back.