资源简介

泊松重建的源代码,可以将目标的点云文件进行泊松网格化,得到目标的面片结构

资源截图

代码片段和文件信息

/*
Copyright (c) 2006 Michael Kazhdan and Matthew Bolitho
All rights reserved.

Redistribution and use in source and binary forms with or without modification
are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice this list of
conditions and the following disclaimer. Redistributions in binary form must reproduce
the above copyright notice this list of conditions and the following disclaimer
in the documentation and/or other materials provided with the distribution. 

Neither the name of the Johns Hopkins University nor the names of its contributors
may be used to endorse or promote products derived from this software without specific
prior written permission. 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“ AND ANY
EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES 
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT
INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED
TO PROCUREMENT OF SUBSTITUTE  GOODS OR SERVICES; LOSS OF USE DATA OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN
CONTRACT STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
*/


#include 
#include 
#include 
#include 
#include “CmdLineParser.h“


#ifdef WIN32
int strcasecmp(char* c1char* c2){return _stricmp(c1c2);}
#endif

cmdLineReadable::cmdLineReadable(const char* name)
{
set=false;
this->name=new char[strlen(name)+1];
strcpy(this->namename);
}
cmdLineReadable::~cmdLineReadable(void)
{
if(name) delete[] name;
name=NULL;
}
int cmdLineReadable::read(char**int){
set=true;
return 0;
}
void cmdLineReadable::writeValue(char* str)
{
str[0] = 0;
}

////////////////
// cmdLineInt //
////////////////
cmdLineInt::cmdLineInt(const char* name) : cmdLineReadable(name) {value=0;}
cmdLineInt::cmdLineInt(const char* nameconst int& v) : cmdLineReadable(name) {value=v;}
int cmdLineInt::read(char** argvint argc){
if(argc>0){
value=atoi(argv[0]);
set=true;
return 1;
}
else{return 0;}
}
void cmdLineInt::writeValue(char* str)
{
sprintf(str“%d“value);
}

//////////////////
// cmdLineFloat //
//////////////////
cmdLineFloat::cmdLineFloat(const char* name) : cmdLineReadable(name) {value=0;}
cmdLineFloat::cmdLineFloat(const char* name const float& v) : cmdLineReadable(name) {value=v;}
int cmdLineFloat::read(char** argvint argc){
if(argc>0){
value=(float)atof(argv[0]);
set=true;
return 1;
}
else{return 0;}
}
void cmdLineFloat::writeValue(char* str)
{
sprintf(str“%f“value);
}

/////////////

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    1301504  2017-02-15 07:26  PoissonRecon\Bin\x64\Release\PoissonRecon.exe

     文件    4460544  2017-02-15 07:26  PoissonRecon\Bin\x64\Release\PoissonRecon.pdb

     文件     103936  2017-02-15 07:28  PoissonRecon\Bin\x64\Release\SurfaceTrimmer.exe

     文件     888832  2017-02-15 07:28  PoissonRecon\Bin\x64\Release\SurfaceTrimmer.pdb

     文件       1797  2014-12-13 22:33  PoissonRecon\Makefile

     文件      37944  2017-02-15 07:25  PoissonRecon\Obj\PoissonRecon\x64\Release\CmdLineParser.obj

     文件      53350  2017-02-15 07:25  PoissonRecon\Obj\PoissonRecon\x64\Release\Factor.obj

     文件     170822  2017-02-15 07:25  PoissonRecon\Obj\PoissonRecon\x64\Release\Geometry.obj

     文件     242995  2017-02-15 07:25  PoissonRecon\Obj\PoissonRecon\x64\Release\MarchingCubes.obj

     文件     257575  2017-02-15 07:25  PoissonRecon\Obj\PoissonRecon\x64\Release\PlyFile.obj

     文件       2968  2017-02-15 07:26  PoissonRecon\Obj\PoissonRecon\x64\Release\PoissonRecon.log

     文件    8352980  2017-02-15 07:25  PoissonRecon\Obj\PoissonRecon\x64\Release\PoissonRecon.obj

     文件      10938  2017-02-15 07:25  PoissonRecon\Obj\PoissonRecon\x64\Release\PoissonRecon.tlog\cl.command.1.tlog

     文件     107066  2017-02-15 07:25  PoissonRecon\Obj\PoissonRecon\x64\Release\PoissonRecon.tlog\CL.read.1.tlog

     文件       6908  2017-02-15 07:25  PoissonRecon\Obj\PoissonRecon\x64\Release\PoissonRecon.tlog\CL.write.1.tlog

     文件       6820  2017-02-15 07:26  PoissonRecon\Obj\PoissonRecon\x64\Release\PoissonRecon.tlog\link.command.1.tlog

     文件      10102  2017-02-15 07:26  PoissonRecon\Obj\PoissonRecon\x64\Release\PoissonRecon.tlog\link.read.1.tlog

     文件       2534  2017-02-15 07:26  PoissonRecon\Obj\PoissonRecon\x64\Release\PoissonRecon.tlog\link.write.1.tlog

     文件        165  2017-02-15 07:26  PoissonRecon\Obj\PoissonRecon\x64\Release\PoissonRecon.tlog\PoissonRecon.lastbuildstate

     文件    2519040  2017-02-15 07:25  PoissonRecon\Obj\PoissonRecon\x64\Release\vc120.pdb

     文件      37933  2017-02-15 07:28  PoissonRecon\Obj\SurfaceTrimmer\x64\Release\CmdLineParser.obj

     文件     257564  2017-02-15 07:28  PoissonRecon\Obj\SurfaceTrimmer\x64\Release\PlyFile.obj

     文件       2034  2017-02-15 07:28  PoissonRecon\Obj\SurfaceTrimmer\x64\Release\SurfaceTrimmer.log

     文件     970263  2017-02-15 07:28  PoissonRecon\Obj\SurfaceTrimmer\x64\Release\SurfaceTrimmer.obj

     文件       2658  2017-02-15 07:28  PoissonRecon\Obj\SurfaceTrimmer\x64\Release\SurfaceTrimmer.tlog\cl.command.1.tlog

     文件      22598  2017-02-15 07:28  PoissonRecon\Obj\SurfaceTrimmer\x64\Release\SurfaceTrimmer.tlog\CL.read.1.tlog

     文件       1720  2017-02-15 07:28  PoissonRecon\Obj\SurfaceTrimmer\x64\Release\SurfaceTrimmer.tlog\CL.write.1.tlog

     文件       2084  2017-02-15 07:28  PoissonRecon\Obj\SurfaceTrimmer\x64\Release\SurfaceTrimmer.tlog\link.command.1.tlog

     文件       4048  2017-02-15 07:28  PoissonRecon\Obj\SurfaceTrimmer\x64\Release\SurfaceTrimmer.tlog\link.read.1.tlog

     文件        754  2017-02-15 07:28  PoissonRecon\Obj\SurfaceTrimmer\x64\Release\SurfaceTrimmer.tlog\link.write.1.tlog

............此处省略70个文件信息

评论

共有 条评论