资源简介
读写,绘制斯坦福大学ply点云数据的源代码,普通的图形绘制软件如Maya,SolideWork无法读取该类数据,是一个遗憾.
代码片段和文件信息
/* ----------------------------------------------------------------------
* RPly library read/write PLY files
* Diego Nehab Princeton University
* http://www.cs.princeton.edu/~diego/professional/rply
*
* This library is distributed under the MIT License. See notice
* at the end of this file.
* ---------------------------------------------------------------------- */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include “rply.h“
/* ----------------------------------------------------------------------
* Constants
* ---------------------------------------------------------------------- */
#define WORDSIZE 256
#define LINESIZE 1024
#define BUFFERSIZE (8*1024)
typedef enum e_ply_io_mode_ {
PLY_READ
PLY_WRITE
} e_ply_io_mode;
static const char *const ply_storage_mode_list[] = {
“binary_big_endian“ “binary_little_endian“ “ascii“ NULL
}; /* order matches e_ply_storage_mode enum */
static const char *const ply_type_list[] = {
“int8“ “uint8“ “int16“ “uint16“
“int32“ “uint32“ “float32“ “float64“
“char“ “uchar“ “short“ “ushort“
“int“ “uint“ “float“ “double“
“list“ NULL
}; /* order matches e_ply_type enum */
/* ----------------------------------------------------------------------
* Property reading callback argument
*
* element: name of element being processed
* property: name of property being processed
* nelements: number of elements of this kind in file
* instance_index: index current element of this kind being processed
* length: number of values in current list (or 1 for scalars)
* value_index: index of current value int this list (or 0 for scalars)
* value: value of property
* pdata/idata: user data defined with ply_set_cb
*
* Returns handle to ply file if succesful NULL otherwise.
* ---------------------------------------------------------------------- */
typedef struct t_ply_argument_ {
p_ply_element element;
long instance_index;
p_ply_property property;
long length value_index;
double value;
void *pdata;
long idata;
} t_ply_argument;
/* ----------------------------------------------------------------------
* Property information
*
* name: name of this property
* type: type of this property (list or type of scalar value)
* length_type value_type: type of list property count and values
* read_cb: function to be called when this property is called
*
* Returns 1 if should continue processing file 0 if should abort.
* ---------------------------------------------------------------------- */
typedef struct t_ply_property_ {
char name[WORDSIZE];
e_ply_type type value_type length_type;
p_ply_read_cb read_cb;
void *pdata;
long idata;
} t_ply_property;
/* ----------------------------------------------------------------------
* Element information
*
* name: name of thi
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 5151 2005-01-16 06:48 读写ply文件\etc\convert.c
文件 1273 2005-01-16 06:48 读写ply文件\etc\dump.c
文件 267 2005-01-16 06:48 读写ply文件\etc\input.ply
文件 2455 2005-01-16 06:48 读写ply文件\etc\sconvert.c
文件 1077 2005-01-16 06:48 读写ply文件\LICENSE
文件 33138 2005-01-16 06:48 读写ply文件\manual\manual.html
文件 950 2005-01-16 06:48 读写ply文件\manual\reference.css
文件 6232 2005-01-16 06:48 读写ply文件\manual\rply.png
文件 51390 2005-01-16 06:48 读写ply文件\rply.c
文件 15201 2005-01-16 06:48 读写ply文件\rply.h
目录 0 2011-03-04 17:48 读写ply文件\etc
目录 0 2011-03-04 17:48 读写ply文件\manual
目录 0 2011-03-04 17:48 读写ply文件
----------- --------- ---------- ----- ----
117134 13
- 上一篇:不死uboot-flash脚本
- 下一篇:PAT甲级练习题155道分类xmind
相关资源
- MSChart控件绘制曲线
- Unity绘制不规则多边形
- Qt360度旋转图片
- 虚拟视点绘制DIBR源码
- stm32 spi方式读写EEPROM
- x64内存读写驱动
- qtcharts实现在UI界面绘制图形
- 基于AD绘制的STM32F103VET6最小系统板
- 基于AD绘制的STM32F405最小系统板
- DSP28335片外 FLASH 读写实验CCS工程
- FPGA读写 IS61LV25616AL的verilog程序
- Bezier曲线曲面绘制
- 基于QT开发的读取微软xbox手柄读写信
- 四边形的简单绘制
- QT-opengl窗体,实现了 1.绘制立方体,
- Qt之自绘制日历控件(三)
- 计算机图形学机器人绘制opengl
- QT5 实时曲线绘制
- USB读写器驱动.zip
- 易语言 拦截文件读写 APIhook
- STM8S003 EEROM读写
- 3D图形绘制及显示OpenGL
- Qt 中读写Excel
- 上位机发送FINS TCP命令读写PLC数据
- DNF破图标读写驱动
- S-35390A RTC读写程序
- 绘制三次B样条
- 三线制实时时钟的读写
- NPOI开源的.NET读写Excel、WORD等文档的类
- NFC_READER V5.0读写程序.exe
评论
共有 条评论