Skip to content

Commit

Permalink
fix: πŸ› εˆ ι™€ε€šδ½™ηš„δ»£η 
Browse files Browse the repository at this point in the history
Change-Id: I73f0da1c2e37c956ef3bfcc2b1c24975faddd1ed
  • Loading branch information
wangwenbin131416 committed Nov 3, 2021
1 parent 8e59c3f commit 5101d82
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions stl_thumbnail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,18 +231,9 @@ int STLThumbnail(const std::string& stl_file_path, const std::string& thumbnail_
// rasterConfig.viewDir = Vec3(-1.0f, -1.0f, -1.0f);
// rasterConfig.viewRight = Vec3(1.0f, -1.0f, 0.0f);

stl::Parser stl_parser;
stl_parser.setCalculateVolume(false);
Mesh mesh;

CaseTracer tracer("cxbin::LoadT");
std::vector<trimesh::TriMesh*> meshs = cxbin::loadT(raster_config.input, &tracer);
if (0== meshs.size())
{
//std::cout << "mesh is null." << std::endl;
return -1;
}

for (trimesh::TriMesh* aMesh : meshs)
{
for (size_t i = 0; i < aMesh->faces.size(); i++)
Expand All @@ -268,13 +259,6 @@ int STLThumbnail(const std::string& stl_file_path, const std::string& thumbnail_
}
}


if (stl_parser.parseFile(mesh, raster_config.input) != 0)
{
// std::cout << "parse stl file " << rasterConfig.input << " failed." << std::endl;
return -1;
}

if (0 == mesh.size())
{
//std::cout << "mesh is null." << std::endl;
Expand Down

0 comments on commit 5101d82

Please sign in to comment.