Countvertices and Counttriangles don't work?

Blitz3D Forums/Blitz3D Programming/Countvertices and Counttriangles don't work?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Check out this example, it may clear things up, then again lol

Graphics3D 800,600

mesh=CreateMesh()
    s1=CountSurfaces(mesh)

surf=CreateSurface(mesh)
    s2=CountSurfaces(mesh)

cube=CreateCube()
AddMesh cube,mesh
    s3=CountSurfaces(mesh)

sphere=CreateSphere()
brush=CreateBrush(255,0,0)
PaintMesh sphere,brush
AddMesh sphere,mesh
    s4=CountSurfaces(mesh)


While Not KeyHit(1)
Text 0,0,"Surfcount of mesh "+s1+" because we haven't made any surfaces yet"
Text 0,10,"Surfcount after creating a surface "+s2+" we just created one surface"
Text 0,20,"Surfcount after addmeshing the cube "+s3+" the cube has the same brush properties as the empty surface"
Text 0,30,"Surfcount after addmeshing the sphere "+s4+" the sphere has different brush properties to the cube"
Flip
Wend