How do I get the intersection region after boolean Union #4409
-
Hi, I was wondering how I can use the I have this but I can't find the correct settings. It either always returns the full mr_self = mesh.toMrMesh()
mr_other = other.toMrMesh()
res_mapper = mr.BooleanResultMapper()
result = mr.boolean(mr_self, mr_other, mr.BooleanOperation.Union, None, res_mapper)
if result.errorString != "":
exit()
region_fbs = mr.FaceBitSet()
region_fbs.resize(mr_other.topology.numValidFaces(), True)
region_fbs = res_mapper.map(region_fbs, mr.BooleanResMapObj.B) I know I can use this in I'd like to know this region to apply a |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 15 replies
-
Hello! There is mr_self = mesh.toMrMesh()
mr_other = other.toMrMesh()
res_mapper = mr.BooleanResultMapper()
result = mr.boolean(mr_self, mr_other, mr.BooleanOperation.Union, None, res_mapper)
if result.errorString != "":
exit()
region_fbs = res_mapper.newFaces() |
Beta Was this translation helpful? Give feedback.
-
Hi @Grantim , Coming back to this issues. I get a lot of While I don not have this issue with the approach below region_fbs = mr.FaceBitSet()
region_fbs.resize(mr_other.topology.numValidFaces(), True)
region_fbs = res_mapper.map(region_fbs, mr.BooleanResMapObj.B) Any ideas why this might occur? |
Beta Was this translation helpful? Give feedback.
-
Hi @Grantim Sorry to open this again, but I am wondering if there is another bug introduced with the newest version? Currently on (3.0.4.121) Using the 2 provided meshes I have the following issue with
res_mapper = mr.BooleanResultMapper()
result = mr.boolean(mr_self, mr_other, mr.BooleanOperation.Union, None, res_mapper)
if result.errorString != "":
exit()
region_fbs = res_mapper.newFaces() |
Beta Was this translation helpful? Give feedback.
Hello!
There is
newFaces
function in mapper: