hgrd_src

所属分类:Windows编程
开发工具:Visual C++
文件大小:27KB
下载次数:41
上传日期:2005-10-07 00:45:06
上 传 者tl
说明:  The hgrd code was created for triangulation of a polygon of any shape. It can also triangulate many separate polygons in one pass.
(The hgrd code was created for triangulation of a polygon of any shape. It can also triangulate many separate polygons in one pass. )

文件列表:
hgrd (0, 2005-04-21)
hgrd\data (0, 2005-04-21)
hgrd\data\simple_poly.pnt (156, 2003-06-01)
hgrd\makefile (734, 2005-07-28)
hgrd\src (0, 2005-04-21)
hgrd\src\dimension.cxx (767, 2005-07-28)
hgrd\src\dimension.h (1352, 2005-07-28)
hgrd\src\hgrid.cxx (40218, 2005-07-28)
hgrd\src\hgrid.h (9504, 2005-07-28)
hgrd\src\hpolygon.cxx (2416, 2005-07-28)
hgrd\src\hpolygon.h (1602, 2005-07-28)
hgrd\src\hrect.h (3155, 2005-07-28)
hgrd\src\main.cxx (1195, 2005-07-28)
hgrd\src\mgconst.cxx (778, 2005-07-28)
hgrd\src\mgconst.h (1977, 2005-07-28)
hgrd\src\mgdecl.h (2255, 2005-07-28)
hgrd\src\mgexcept.cxx (1282, 2005-07-28)
hgrd\src\mgexcept.h (9782, 2005-07-28)
hgrd\src\stldecl.h (1029, 2005-07-28)
hgrd\src\vect.h (15885, 2005-07-28)

################# # HGRD README # ################# The hgrd code was created for triangulation of a polygon of any shape. It can also triangulate many separate polygons in one pass. Program was tested with gcc 2.95, MS Visual C++ 6.0 and 7.0 compilers. 2005-07-28: in order to use newer versions of gcc without generating warnings the definitions of friend operators inside vect.h has been modified USAGE ======= A makefile is written for gnu make and can be used for compilation under Linux/Unix platforms with gcc compiler. A command line for running the program is following: hgrd [file with points] [output tecplot file] e.g.: hgrd simple_poly.pnt output.dat INPUT FILE ============ The polygons are defined in a file as a list of closed boundaries. The direction in which points are entered determines if the boundary encloses a hole or a polygon. It is supposed that polygon lies on the left side of the boundary. Sample input file : 2 <--- number of closed boundaries 13 <--- number of points in first boundary 0 0 <--- x and y coordinates of a point 1 0 1 0.6 1.5 0.6 1.5 0.3 2 0.3 2 0.9 0.6 0.9 0.6 1.3 1 1.3 1 1.5 0 1.5 0 0 5 <--- number of points in second boundary 0.2 0.2 0.2 0.7 0.8 0.5 0.8 0.2 0.2 0.2 OUTPUT FILE ============+ The output file is a file used for Amtec Tecplot visualization software. TITLE = "polygon" VARIABLES = "X", "Y" ZONE T="TRIANGLES", N=41530, E=38849, F=FEPOINT, ET=TRIANGLE C=BLACK <--- N is number of nodes E is number of elements 594.861 2854.66 <--- X and Y coordinates of a point 595.035 2854.4 595.559 2854.15 ... 595.355 2854.56 219.187 2057.75 2 3 5 <--- three node ids defining a triangle (ids starts from 1) 3 4 5 5 1 2 ... 9 10 11 1 8 14 8 13 14 17 18 19 17 20 16 Copyright notice ================== Copyright (C) 2000-2003 Jerzy Majewski - jmajewsk@meil.pw.edu.pl This is free software. You can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation. This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. See the GNU Lesser General Public License for more details.

近期下载者

相关文件


收藏者