Flipmesh

Blitz3D Forums/Blitz3D Programming/Flipmesh

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.

Like this ....

function MESHoutline( Source , Offset#= .1 )

   Outline = copymesh( Source, Source )
   flipMesh Outline
   updatenormals Outline
   entitycolor Outline,0,0,0
   
   for cs = 1 to countsurfaces( Outline )
      s = getsurface( Outline, cs )
      for v = 0 to countvertices( s ) - 1
          vertexcoords s, v, vertexx(s,v)+vertexnx(s,v ) * Offset , vertexy( s, v ) + vertexny( s, v ) * Offset , vertexz( s, v ) + vertexnz( s, v ) * offset
      next
   next

end function