MantisBT
Mantis Bug Tracker Workflow

View Revisions: Issue #24019 All Revisions ] Back to Issue ]
Summary 0024019: Voxel_FastConverter: filling problem
Revision 2013-06-07 12:20 by Pawel
Steps To Reproduce //Code after integration of 23894
TopoDS_Shape shape;
BRep_Builder aBuilder;
BRepTools::Read(shape,"boxes5.brep",aBuilder/*, anIndicator*/);

TopoDS_Shape shape1 = BRepPrimAPI_MakeSphere(gp_Pnt(20,25,35), 7);

Standard_Real deflection = 0.005;
Standard_Integer nbThreads = 1;
Standard_Integer nbx = 200, nby = 200, nbz = 200;
Voxel_BoolDS theVoxels(0,0,0, 50, 50, 50, nbx, nby, nbz);
Voxel_BoolDS theVoxels1(0,0,0, 50, 50, 50, nbx, nby, nbz);

Voxel_FastConverter fcp(shape, theVoxels, deflection, nbx, nby, nbz, nbThreads);
fcp.ConvertUsingSAT(progress, 1);
fcp.FillInVolume(1);

Voxel_FastConverter fcp1(shape1, theVoxels1, deflection, nbx, nby, nbz, nbThreads);
progress = 0;
fcp1.ConvertUsingSAT(progress, 1);
fcp1.FillInVolume(1);

Voxel_BooleanOperation op;
Standard_Boolean result = op.Cut(theVoxels1, theVoxels);
Revision 2013-06-07 02:08 by Pawel
Steps To Reproduce


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker