General Modeling Failure on union of two regions

General Modeling Failure on union of two regions

Anonymous
Not applicable
1,040 Views
2 Replies
Message 1 of 3

General Modeling Failure on union of two regions

Anonymous
Not applicable

Hi!

the drawing has a variety of regions. I need to union those that intersects.

region.BooleanOperation(BooleanOperationType.BoolUnite, subregion);

this code throw a message like that:

Logical operations failure on regions.
Error modeling operations:
      An error occurred during execution of the algorithm create the intersection face-face.

eGeneralModelingFailure

Can someone explain to me why there is an error? Regions intersects exactly.

Thanks!

0 Likes
Accepted solutions (1)
1,041 Views
2 Replies
Replies (2)
Message 2 of 3

StephenPreston
Alumni
Alumni
Accepted solution

There could be several reasons, including but not necessarily limited to:

 

1. The regions could be 'just' touching - the edges skim each other but don't actually overlap/touch within the required tolerance even though it looks to you like they are touching.

2. The drawing could be corrupt.

3. This could be a bug.

 

Related to (1) there is an effect where if you move a solid body (including regions) a long way from the origin (e.g. of the order of 1e6) then modelling accuracy can be affected and an operation that worked near the origin no longer works. Once you've moved the solid body, moving it back to the origin does not restore the accuracy.

 

But its not possible to say which may be the problem without more information.

 

 

Cheers,

Stephen Preston
Autodesk Developer Network
Message 3 of 3

Anonymous
Not applicable

StephenPreston, many thanks for explanation!!!!

0 Likes