Anim8or Community

General Category => ASL Scripts => Topic started by: Bugtrooper on June 02, 2010, 04:37:50 pm

Title: Boolean operation problem!
Post by: Bugtrooper on June 02, 2010, 04:37:50 pm
Hello!
I've got some problem when using the union boolean operation. When I try to unify 2 mesh (a wall section and a sphere) I've got the error code 3# .....A concave face detected!....and I don't want to unify the 2 objects manually beacause it's really long work with the whole project. So can anyone give me some help?
(http://i624.photobucket.com/albums/tt324/Raizen31337/problem01.jpg)
Title: Re: Boolean operation problem!
Post by: hihosilver on June 02, 2010, 08:06:39 pm
Hm, that's an interesting problem.  One thing that I would make sure of is that both figures are fully closed, otherwise it wont work.
Title: Re: Boolean operation problem!
Post by: Bugtrooper on June 03, 2010, 07:56:12 am
They are close, they are on contact.
Title: Re: Boolean operation problem!
Post by: RudySchneider on June 03, 2010, 11:09:51 am
hihosilver means "closed," as in solid meshes.  Boolean operations won't work on an open mesh.
Title: Re: Boolean operation problem!
Post by: Bugtrooper on June 03, 2010, 02:32:46 pm
Okkay so I have to close.... ok thanks:D
Title: Re: Boolean operation problem!
Post by: Bugtrooper on June 04, 2010, 03:53:24 pm
It not worked.... maybe I doing something wrong...
Title: Re: Boolean operation problem!
Post by: Bugtrooper on June 04, 2010, 03:55:24 pm
If I post the project can anyone help?
Title: Re: Boolean operation problem!
Post by: RudySchneider on June 04, 2010, 09:24:57 pm
It couldn't hurt...
Title: Re: Boolean operation problem!
Post by: Bugtrooper on June 05, 2010, 02:00:05 am
http://www.megaupload.com/?d=GBTBWV33

Here is it!
Title: Re: Boolean operation problem!
Post by: kreator on June 05, 2010, 02:48:33 am
This operation will not work, as you are trying to do a union to a curved surface.

To complete the operation You need a flat surface do the union, then do a  bend modifier to that, to get your curve.

I think it pays to pre-think the model before getting too far into it, this model just needed  one section to be worked on to get it how you wanted, then you could have duplicated and attached each section.

If you don`t want to re-start, I`d just add half spheres at intervals then do a "Join Solids"

 
Title: Re: Boolean operation problem!
Post by: Bugtrooper on June 05, 2010, 05:24:20 am
Thanks!
And by the way... I joined the tain project earlier on 3DVIA, and wanted to ask that can I help?
Title: Re: Boolean operation problem!
Post by: kreator on June 05, 2010, 09:28:04 am
Quote
joined the tain project earlier on 3DVIA, and wanted to ask that can I help?

whats your username on there?  Raizen31337 ??
Title: Re: Boolean operation problem!
Post by: Bugtrooper on June 05, 2010, 03:16:42 pm
Yeah! :D
Title: Re: Boolean operation problem!
Post by: JSmith_DumDumDumDumDum on December 10, 2015, 06:13:42 pm
This operation will not work, as you are trying to do a union to a curved surface.

To complete the operation You need a flat surface do the union, then do a  bend modifier to that, to get your curve.
 

I'm not too sure I understand. I've boolean-subtracted spheres, cubic figures, and (lathed) objects with round surfaces from each other before, and I don't always get the error message. In fact, to create a cresent-looking hemisphere, I subtracted a smaller circle from a bigger one, and it worked; amoung the random times it mysteriously does.

The reason I revived this thread is because, as I've consistently ran into in the past, I ran into this error message again when  trying to subtract a "screw" object from my Cannon chess piece; this, to create the cannon's main body component with a hole drilled through it. Whether it's B-A or A-B, I still get this "error 3" message.

http://www.filedropper.com/transfiguringcannonandscholarintofidechesspieces (change to front view, if not already there)
Title: Re: Boolean operation problem!
Post by: NickE on December 11, 2015, 05:45:10 pm
I have attached a different Boolean Operations script that might work in those tricky situations.  The instructions are a bit different, so be sure to read the header in the script file.

Title: Re: Boolean operation problem!
Post by: JSmith_DumDumDumDumDum on May 06, 2016, 02:04:09 am
I have attached a different Boolean Operations script that might work in those tricky situations.  The instructions are a bit different, so be sure to read the header in the script file.

Hi NickE,
I hope you are still around. Can you please explain how I execute these scripts?
Thanks.
Title: Re: Boolean operation problem!
Post by: NickE on May 06, 2016, 06:51:08 pm
JSmith,

In the header of the script file is the instruction on how to execute the script.

Quick instructions:
Have an object that contains the two meshes that you want use for the boolean operations.
If you wish to do a Union operation, do not select either mesh and execute the script by Scripts->Run Script File...
If you wish to do a Difference operation, select the mesh that will be subtracted from the other, then execute the script
If you wish to do a Intersection operation, select both meshes, then execute the script

If you need more guidance, please let me know.

NickE
Title: Re: Boolean operation problem!
Post by: JSmith_DumDumDumDumDum on May 07, 2016, 01:55:28 pm
Actually, NickE, my minor inquiry was self-discovered: I was really asking where I was supposed to put the script so that it can be executed; not realizing that anim8or could execute scripts in txt format.

I tried the operation, and it worked very nicely! For my old project that I was needing help on a few months back and for a current one.

Thanks!




Now, however, going back to an old problem with the A-B Boolean, I'm still getting that "concave face" error OR the "open mesh" (when my two meshes are completed with closure throughout!). I've tried different angles, and still either one of these errors pop up. Can you please have a look?

In the following attachment:

Sample A is the Mesh Head ("MeshH) and the subtracting mesh (MeshS) that I'm having trouble with.

I tried smoothing both objects (Sample B) to see if that was a solution to make the darn two things executable. That didn't work.

Then, I tried doing it the inconvenient manual way (Sample C): cut up the mesh with the cut tool, deleting the part being subtracted and then adding faces back by selecting four conjoined lines and Shft+J. That seemed to solve my boolean issue alright, but a new problem arose: the appearance of the new mesh. As you can see, there are unflattering dark patches that render the sample mesh unusable; since I'm making this mesh as a demonstration for my chess business.

Forgetting sample C, can you please take a look at sample A and/or B and see how I can finally get the two irritating things to work?

Thanks so much for your help! As always.

Regards,
JS_D
Title: Re: Boolean operation problem!
Post by: NickE on May 07, 2016, 11:53:34 pm
JSmith,

I personally do not use Kubajzz Boolean Scripts A-B or B-A.  I use the one attached below.

I looked at the an8 file you attached.  Your mesh "meshHH" had several problems including interior lines and duplicate points.  Your mesh "meshSS" had all its normals flipped inward, a couple of extra edges and several duplicate points.  These issues are probably what is causing the errors with the Kubajzz A-B Boolean script.

When I fixed these issues and ran the attached boolean operations script (selecting the "meshSS" so it would be subtracted from "meshHH"), the result was a good subtraction with the exception of a few faces with flipped normals.  I have attached the an8 file so you can compare the original vs repaired meshes and the results of the Boolean subtraction.

NickE
Title: Re: Boolean operation problem!
Post by: JSmith_DumDumDumDumDum on May 09, 2016, 06:23:35 pm
Thanks, NickE! Greatly appreciated.  :) :)

JSmith
Title: Re: Boolean operation problem!
Post by: Unobtainium on March 20, 2017, 10:27:33 am
Thanks for the boolean operations script, NickE.
Title: Re: Boolean operation problem!
Post by: neirao on August 15, 2017, 08:53:13 am
Nice script NickE!