Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add the envelope constraint ? #270

Open
ddyx0111 opened this issue Aug 30, 2023 · 1 comment
Open

How to add the envelope constraint ? #270

ddyx0111 opened this issue Aug 30, 2023 · 1 comment

Comments

@ddyx0111
Copy link

I followed the example you gave "USAGE EXAMPLES (WITH SAMPLE DATA)" where % PoissonRecon --in torso.points.ply --envelope torso.envelope.ply -- out torso.pr.ply --depth 10. out torso.pr.ply --depth 10.
But I'm having problems running the program.
The program stoped at "geometryNodeDesignators = FEMTreeInitializer< Dim , Real >::template GetGeometryNodeDesignators( &tree.spaceRoot() , vertices , simplices , BaseDepth.value , EnvelopeDepth.value , tree.nodeAllocators , tree.initializer() );"

when “Allocate the tree up to the prescribed depth” ending, the program should run:

typename Rasterizer< Real , Dim >::template SimplexRasterizationGrid< node_index_type , Dim-1 > raster = Rasterizer< Real , Dim >::template Rasterize< node_index_type >( sComplex , regularGridDepth , typename Rasterizer< Real , Dim >::ThreadSafety( Rasterizer< Real , Dim >::ThreadSafety::MUTEXES , regularGridDepth ) );
for( size_t i=0 ; i<raster.resolution() ; i++ ) if( raster[i].size() ) geometricCellCount++;_

when executing “for( size_t i=0 ; i<raster.resolution() ; i++ ) if( raster[i].size() ) geometricCellCount++;”, raster[i].size() is not accessed, causing the policy program to stop.

What can I do to solve this problem? I will be grateful for your answer.

@mkazhdan
Copy link
Owner

Apologies. In the .zip file the envelope is called "torso.hull.ply" not "torso.envelope.ply".
I have updated the .zip file so that the naming is consistent with the usage description on the webpage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants