[bb] MyPaintMesh by FlameDuck [ 1+ years ago ]

Started by BlitzBot, June 29, 2017, 00:28:43

Previous topic - Next topic

BlitzBot

Title : MyPaintMesh
Author : FlameDuck
Posted : 1+ years ago

Description : The PaintMesh commands collapses all surface information. This function paints all the surfaces of a mesh individually, which means that surface information is retained.

Code :
Code (blitzbasic) Select
Function MyPaintMesh(mesh,brush)

For i = 1 To CountSurfaces(mesh)
surfh=GetSurface(mesh,i)
PaintSurface surfh,brush
Next

End Function


Comments : none...