Mesh Size function

BlitzMax Forums/MiniB3D Module/Mesh Size function

patmaba(Posted 2006) [#1]
The problem comme back about the mesh size

I'm loading the patmaba.b3d model when i ask the size of the mesh, i receive for all meshwidth, meshheight and meshdepth function the following values :

-2.00000000e+009


I'm not making scaling of the mesh. The only thing is rotate and positionentity.


Ok, i have found the trouble

BEFORE
Self.Entity = LoadAnimMesh(pFile)

REPLACED BY
Self.Entity = LoadMesh(pFile)

The size function is correctely.

You have trouble when you ar using the LoadAnimMesh function and calling the function meshwidth, meshdepth, meshheight. the values is -2.0000000e+009

So, with this last function, my mesh is badly textured.


patmaba(Posted 2006) [#2]
.


simonh(Posted 2006) [#3]
With LoadAnimMesh you need to find a valid child mesh for MeshWidth to work properly - B3D is the same.

What do you mean your mesh is badly textured with LoadMesh? It should be the same as LoadAnimMesh.


patmaba(Posted 2006) [#4]
Sorry,

later in my code, i have found a superfluity entitycolor code.

I have drop this line, now work correctly