Rank: 27029 based on 0 downloads (last 30 days) and 0 file submitted
photo

Samarth Raut

E-mail
Company/University
Carnegie Mellon University

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Samarth Raut
Updated File Comments Rating
13 May 2011 surf2stl Write STL file from surface data. Author: Bill McDonald

@ Prashanth,
AFAIK, .stl is inherently meant for triangulated geometry representation.
http://en.wikipedia.org/wiki/STL_%28file_format%29

What you can do is to split rectangles into triangles - e.g. rectangle (n1, n2,n3,n4) gives two triangles - (n1,n2,n3) and (n3,n4,n1). Note that the order of n1,n2 etc is such that the normals obtained by cross product of vector, say n1_n2 x n2_n3 points outwards direction and there is consistency in this normal direction among all triagles. i.e. no sudden flips.

hope it helps,
Samarth

Contact us