[Bf-committers] Re: A little Editface Question
theeth at yahoo.com
Thu Jun 9 03:22:34 CEST 2005
Then, all of the new face will have a different
percent value on the cut edge. It's on the original
edge anyway, so pretty easy to figure. 1.0/number of
cutes * conversion factor to store in short.
--- Johnny Matthews <johnny.matthews at gmail.com> wrote:
> the problem is that there will be 1 or more cuts per
> face (the code
> allows for unlimited cuts per edge)
> I'll look at the code you mentioned and see if it
> can point me in the
> right direction though.
> On 6/8/05, Martin Poirier <theeth at yahoo.com> wrote:
> > --- Johnny Matthews <johnny.matthews at gmail.com>
> > > Ok, This is for any self-professed Mesh Gurus
> > > there,
> > >
> > > I am getting very close to having a working
> > > of the edge-based
> > > subdivide with the option of 1 or more even
> > > The
> > > hitch I have is this. I have a function that
> > > each new internal
> > > face as it is created and copies information
> > > the parent
> > > face kinda like facecopy(EditFace
> > > target), where target
> > > is always a subface of source. Can you think of
> > > way, without passing any more information to the
> > > function to extrapolate
> > > the UV and Vertcol information from the source
> > > to the target face.
> > This one's for me.
> > You'll want to call the function: set_wuv in
> > editmesh_tools.c
> > First argument is the number of verts (could
> easily be
> > removed).
> > Second argument is the new face, then the vertex
> > (explained in the nice ascii drawing in the
> > body) and then the pinned face (original face
> > containing pinned uvs flags and the like).
> > To use the function correctly, you have to call it
> > with the proper vertex flags AND also set the f1
> > for each edge that is being cut. This sets the
> > of where the cut is along the edge starting from
> > first vertex in the edge (0.0) to the last (1.0)
> > stored in a short (multiplied by 32768).
> > If you have more questions, you can contact me
> > directly.
> > Martin
> > __________________________________
> > Discover Yahoo!
> > Stay in touch with email, IM, photo sharing and
> more. Check it out!
> > http://discover.yahoo.com/stayintouch.html
> > _______________________________________________
> > Bf-committers mailing list
> > Bf-committers at projects.blender.org
> Johnny Matthews
> johnny.matthews at gmail.com
> Bf-committers mailing list
> Bf-committers at projects.blender.org
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
More information about the Bf-committers