资源简介
Ply解析文件,可以转换二进制和Ascii的Ply
代码片段和文件信息
/* ----------------------------------------------------------------------
* 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
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-03-04 17:48 读写ply文件\
目录 0 2019-01-06 19:53 读写ply文件\etc\
文件 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
文件 2186733 2019-01-06 18:26 读写ply文件\etc\randomface_1.ply
文件 2455 2005-01-16 06:48 读写ply文件\etc\sconvert.c
文件 1077 2005-01-16 06:48 读写ply文件\LICENSE
目录 0 2011-03-04 17:48 读写ply文件\manual\
文件 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
相关资源
- 英文原版-Scientific Computing with Python
- python3.5可用的scipy
- 计算机科学导论-python.pdf
- Deep Learning Cookbook_ practical recipes to g
- decision_tree_v2.py
- Data Science from Scratch First Principles wit
- Introduction to Programming in Python An Inter
- ciscoIOUKeygen.py
- Data Science Fundamentals for Python and Mongo
- Introduction to Python for Science
- scikit-learn-0.19.1.win32-py2.7.exe
- Introduction to Data Science - A Python Approa
- 计算科学与工程Python简介Introduction
- Data Science from Scratch First Principles wit
- scip的python
- python机器学习5个数据科学家案例解析
- data-science-using-python-r
- Python DBC LIB
- Introducing Python;Modern Computing in Simple
- 用Python做科学计算(scipy).pdf
- python+opencv识别魔方颜色+kociemba算法应
- 第11讲--scipy-数据处理应用.pdf
- 电离层射线追踪
- scikit_learn-0.20.0-cp27-cp27m-win_amd64.whl
- Using Asyncio in Python 3
- Python.Programming.An.Introduction.to.Computer
- Python科学计算(scipy).pdf
- scikit_learn-0.21.1-cp37-cp37m-win_amd64 .whl
- WCI指数计算器1.0版
- Learning scikit-learn Machine Learning in Pyth
评论
共有 条评论