go to www.geomview.org home page
 
Home

Overview
FAQ
Documentation

Download

Mailing List

Geomview For Windows?

Support
Users
Development

Bug Reporting
Contributing
Contact Us

Sponsors

 

Site Search

 

Advanced
Search

 
About the software@geom archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Closed REQ 5867]: software@geom.umn.edu


  • To: software@geom.umn.edu
  • Subject: Re: [Closed REQ 5867]: software@geom.umn.edu
  • From: daemon
  • Date: Tue, 4 Jun 1996 16:05:58 -0500 (CDT)

> I Would like to know how visualize 3D triangulated surfaces ,in geomview,
> like this one:
> 
>      N		x	y		z
> VRTX 1 460294.656250 471635.218750 1439.179321 
> VRTX 2 458705.875000 472858.750000 1221.931396 
> VRTX 3 459660.625000 469717.531250 1401.851807 
> VRTX 4 460494.406250 471366.312500 1453.692261 
> ...
> ...
> ...
> VRTX 2669 458302.375000 473132.281250 1108.416992 
> VRTX 2670 458644.875000 470754.500000 1185.832275 
> VRTX 2671 458956.062500 472405.187500 1233.177368 
> TRGL 2222 1696 1665
> TRGL 2048 1715 2340
> TRGL 935 1476 2114

One of geomview's file formats, the OFF form, looks quite close to this one.
You'll need to know just how many vertices and triangles there are in all.
Suppose there are 2671 vertices and 5255 faces.
Then, you'd write

OFF
2671  5255  0

# Here are coordinates for all the vertices.
# Their numbers are implied; the first is vertex 0.
460294.656250 471635.218750 1439.179321		# geomview calls this vertex 0
458705.875000 472858.750000 1221.931396		# here's vertex 1
459660.625000 469717.531250 1401.851807
460494.406250 471366.312500 1453.692261
   ...
458644.875000 470754.500000 1185.832275
458956.062500 472405.187500 1233.177368		# here's vertex 2670, the final
# Here are the faces, one per line.   The first number on a line is
# the number of vertices on that face.
# You'd need to subtract 1 from all the vertex-numbers you mentioned,
# since it looks as though your vertex-indices begin at 1.
# (Or, you could just add a dummy vertex, say a copy of vertex 1, as
# the first vertex, and increase the count from 2671 to 2672.)
3  2221 1695 1664
3  2047 1714 2339
3  934 1475 2113

You can read more about this and other file formats in the geomview
manual or in the "man 5 oogl" manual page, but this should be enough for
you to try something.


 
Home | Overview | FAQ | Documentation | Support | Download | Mailing List
Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors
 
site hosted by
SourceForge Logo