[Bf-committers] Face union mesh function write

Rob Haarsma bf-committers@blender.org
Thu, 22 Jan 2004 02:07:22 +0100

Hey Spectr,

Your union_mesh function looks very interesting, it reminds me of the 
Clay modeler.
I'd like to add this function to Tuhopuu so it can be evaluated by 
everyone, but may I
ask you to clean it up a little ?

My (windows) compiler chokes when variables are declared between 
To get it working i had to move all declarations to the top of the 
function, or after an
opening bracket.

Thank you for your patch !


Spectr wrote:

> Hi!
> Sorry for my bad english, and this is my first post in this mail list.
> I write function - in attach two source file from 
> CVS/bf-blender/blender/source/blender/src with changes for add this 
> function
> in file space.c i add activation over CTRL+V key combination, in 
> editmesh.c - source of this function.
> This function is union_mesh. I write this for convert two adjacent 
> faces in mesh in one with save UV, material and vertex color.
> For what this function? First, for create from one mesh object model 
> misc object with various LOD, and second - for example, fix mesh after 
> boolean operation (in this time, this operation create many faces for 
> resulting object).
> This function have 3 mode, with toggle keys:
> SHIFT - loop or single selection;
> CTRL - convert adjacent triangle and quad into: triangle, or quad;
> ALT - convert adjacent two quad into: triangle, or quad.
> In this time i fix remove garbage vertex and edges after convert two 
> faces into one.
> Please, try this function, and comment it.
> Spectr