Thanks for the reply Fabrice3D. I was using Triangles but changed them
to Meshes and it now works perfectly.




On Feb 11, 8:27 pm, Fabrice3D <[email protected]> wrote:
> Please define "triangle", is it Mesh or Triangle?
> Because if its Triangle, as you can read on the doc, the vertexes are a, b 
> and c and could explain why nothing happends
> The trio is accessible read.write and a simple Triangle.a.x = val should 
> changes the first vertex on value x.
>
> The Mesh method you use, updateVertex, do affect face.v0, v1 and v2 of a Face 
> object accessed with mesh.faces[index]
> You can use the updateVertex by passing the face, and the x,y,z new values.
> I've used it this week and it was working, at least if you are running on 
> latest svn build. What version do you use?
>
> Take a look at NormalUVModifier class, the class does this kind of stuff.
>
> The image showing reverted tris:
> I recall answering you on this. you probably need only to swap v0 and v1
> Do you still have this problem?
>
> Fabrice
>
> On Feb 11, 2010, at 8:23 PM, jimalliban wrote:
>
> > Any ideas on this one? Last bump I promise :)
>
> > On Feb 7, 2:47 pm, jimalliban <[email protected]> wrote:
> >> Anyone?
>
> >> I've tried updateVertex() and updateObject() with no joy. Perhaps it's
> >> to do with the fact that I've set the triangle.faceMaterial to null?
> >> This was to avoid a strange bug where additional triangles would
> >> appear - see here -http://augmatic.co.uk/store/triangles.png
>
> >> On Feb 6, 5:41 pm, jimalliban <[email protected]> wrote:
>
> >>> Hi All
>
> >>> I've made a grid of triangles that takes the shape of a Plane. There
> >>> is a bitmap material mapped to each Triangle using the UV + Face
> >>> classes. I need to animate the x,y,z of the vertices of each Triangle
> >>> but can't seem to get this working. Although the xyz values are
> >>> changing, the shape and positions of the triangles remain the same.
>
> >>> If you would like to see the code I've put it on PasteBin 
> >>> -http://pastebin.com/mf0e565f.
>
> >>> Hope someone can help
>
> >>> Jim

Reply via email to