TRI_SURFACE_IO

TRI_SURFACE_IO 是一个 C++ 库,用于读取和写入表示三角表面网格的 3D 图形文件。该库支持通过文件对来存储和读取三角面数据,并提供了相应的读写功能。它可用于处理诸如球体和立方体等 3D 模型。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

TRI_SURFACE_IO 
Read and Write TRI_SURFACE 3D Graphics Files


TRI_SURFACE_IO is a C++ library which reads or writes the 3D graphics information stored in a pair of files that represent a TRI_SURFACE object, that is, a surface described as a collection of triangles.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

TRI_SURFACE_IO is available in a C++ version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

PLY_TO_TRI_SURFACE, a MATLAB program which extracts data from a PLY file and writes it to a TRI_SURFACE file.

TRI_SURFACE, a data directory which has some examples of TRI_SURFACE files.

TRI_SURFACE_DISPLAY, a MATLAB program which reads a TRI_SURFACE 3D graphics file and displays it in a 3D window.

TRI_SURFACE_DISPLAY_OPENGL, a C++ program which displays the 3D graphics information in a TRI_SURFACE file using OpenGL.

TRI_SURFACE_TO_PLY, a MATLAB program which extracts data from a TRI_SURFACE file and writes it to a PLY file.

Source Code:

Examples and Tests:

List of Routines:

  • CH_CAP capitalizes a single character.
  • CH_EQI is true if two characters are equal, disregarding case.
  • CH_TO_DIGIT returns the integer value of a base 10 digit.
  • DTABLE_CLOSE_WRITE closes a file to which a DTABLE was to be written.
  • DTABLE_DATA_READ reads the data from a DTABLE file.
  • DTABLE_DATA_WRITE writes data to a DTABLE file.
  • DTABLE_HEADER_READ reads the header from a DTABLE file.
  • DTABLE_HEADER_WRITE writes the header of a DTABLE file.
  • DTABLE_WRITE writes information to a DTABLE file.
  • FILE_COLUMN_COUNT counts the number of columns in the first line of a file.
  • FILE_ROW_COUNT counts the number of row records in a file.
  • I4_MAX returns the maximum of two I4's.
  • I4_MIN returns the smaller of two I4's.
  • I4MAT_TRANSPOSE_PRINT prints an I4MAT, transposed.
  • I4MAT_TRANSPOSE_PRINT_SOME prints some of an I4MAT, transposed.
  • ITABLE_DATA_READ reads data from an ITABLE file.
  • ITABLE_DATA_WRITE writes data to an ITABLE file.
  • ITABLE_HEADER_READ reads the header from an ITABLE file.
  • ITABLE_HEADER_WRITE writes the header of an ITABLE file.
  • ITABLE_WRITE writes information to an ITABLE file.
  • R8_EPSILON returns the R8 roundoff unit.
  • R8MAT_TRANSPOSE_PRINT prints an R8MAT, transposed.
  • R8MAT_TRANSPOSE_PRINT_SOME prints some of an R8MAT, transposed.
  • S_LEN_TRIM returns the length of a string to the last nonblank.
  • S_TO_I4 reads an I4 from a string.
  • S_TO_I4VEC reads an I4VEC from a string.
  • S_TO_R8 reads an R8 from a string.
  • S_TO_R8VEC reads an R8VEC from a string.
  • S_WORD_COUNT counts the number of "words" in a string.
  • TIMESTAMP prints the current YMDHMS date as a time stamp.
  • TIMESTRING returns the current YMDHMS date as a string.
  • TRI_SURFACE_PRINT prints graphics information from a pair of TRI_SURFACE files.
  • TRI_SURFACE_READ reads graphics information from a pair of TRI_SURFACE files.
  • TRI_SURFACE_SIZE determines the size of a TRI_SURFACE object.
  • TRI_SURFACE_SIZE_PRINT prints sizes associated with a TRI_SURFACE file.
  • TRI_SURFACE_WRITE writes graphics information to a pair of TRI_SURFACE files.

You can go up one level to the C++ source codes.


Last revised on 22 February 2009

http://people.sc.fsu.edu/~jburkardt/cpp_src/tri_surface_io/tri_surface_io.html

module design_1_wrapper (BLK_tri_o, DC_tri_o, DDR_addr, DDR_ba, DDR_cas_n, DDR_ck_n, DDR_ck_p, DDR_cke, DDR_cs_n, DDR_dm, DDR_dq, DDR_dqs_n, DDR_dqs_p, DDR_odt, DDR_ras_n, DDR_reset_n, DDR_we_n, FIXED_IO_ddr_vrn, FIXED_IO_ddr_vrp, FIXED_IO_mio, FIXED_IO_ps_clk, FIXED_IO_ps_porb, FIXED_IO_ps_srstb, RES_tri_o, SCL_tri_o, SDA_tri_o); output [0:0]BLK_tri_o; output [0:0]DC_tri_o; inout [14:0]DDR_addr; inout [2:0]DDR_ba; inout DDR_cas_n; inout DDR_ck_n; inout DDR_ck_p; inout DDR_cke; inout DDR_cs_n; inout [3:0]DDR_dm; inout [31:0]DDR_dq; inout [3:0]DDR_dqs_n; inout [3:0]DDR_dqs_p; inout DDR_odt; inout DDR_ras_n; inout DDR_reset_n; inout DDR_we_n; inout FIXED_IO_ddr_vrn; inout FIXED_IO_ddr_vrp; inout [53:0]FIXED_IO_mio; inout FIXED_IO_ps_clk; inout FIXED_IO_ps_porb; inout FIXED_IO_ps_srstb; output [0:0]RES_tri_o; output [0:0]SCL_tri_o; output [0:0]SDA_tri_o; wire [0:0]BLK_tri_o; wire [0:0]DC_tri_o; wire [14:0]DDR_addr; wire [2:0]DDR_ba; wire DDR_cas_n; wire DDR_ck_n; wire DDR_ck_p; wire DDR_cke; wire DDR_cs_n; wire [3:0]DDR_dm; wire [31:0]DDR_dq; wire [3:0]DDR_dqs_n; wire [3:0]DDR_dqs_p; wire DDR_odt; wire DDR_ras_n; wire DDR_reset_n; wire DDR_we_n; wire FIXED_IO_ddr_vrn; wire FIXED_IO_ddr_vrp; wire [53:0]FIXED_IO_mio; wire FIXED_IO_ps_clk; wire FIXED_IO_ps_porb; wire FIXED_IO_ps_srstb; wire [0:0]RES_tri_o; wire [0:0]SCL_tri_o; wire [0:0]SDA_tri_o; design_1 design_1_i (.BLK_tri_o(BLK_tri_o), .DC_tri_o(DC_tri_o), .DDR_addr(DDR_addr), .DDR_ba(DDR_ba), .DDR_cas_n(DDR_cas_n), .DDR_ck_n(DDR_ck_n), .DDR_ck_p(DDR_ck_p), .DDR_cke(DDR_cke), .DDR_cs_n(DDR_cs_n), .DDR_dm(DDR_dm), .DDR_dq(DDR_dq), .DDR_dqs_n(DDR_dqs_n), .DDR_dqs_p(DDR_dqs_p), .DDR_odt(DDR_odt), .DDR_ras_n(DDR_ras_n), .DDR_reset_n(DDR_reset_n), .DDR_we_n(DDR_we_n), .FIXED_IO_ddr_vrn(FIXED_IO_ddr_vrn), .FIXED_IO_ddr_vrp(FIXED_IO_ddr_vrp), .FIXED_IO_mio(FIXED_IO_mio), .FIXED_IO_ps_clk(FIXED_IO_ps_clk), .FIXED_IO_ps_porb(FIXED_IO_ps_porb), .FIXED_IO_ps_srstb(FIXED_IO_ps_srstb), .RES_tri_o(RES_tri_o), .SCL_tri_o(SCL_tri_o), .SDA_tri_o(SDA_tri_o)); endmodule
06-25
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值