Create shape from mesh causes failure with default sewing tolerance

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
Dignius
Posts: 7
Joined: Thu Jul 27, 2017 11:06 am

Create shape from mesh causes failure with default sewing tolerance

Post by Dignius »

Problem
In the example below, if I create shape from mesh with the default tolerance for sewing shape of 0.1, later actions fail. If I set it at 0.2, they will work. One confusing aspect is that there is no indication of a problem at the time. It's only later when there is any failure, and it's unclear that it relates to earlier processes. I have two questions:
  • What does "tolerance for sewing shape" actually do? The wiki does not specify.
  • Why does the default value of 0.1 fail as per below?
Background
I attempt to modify an stl file downloaded from Thingiverse. I download the file, import into FreeCAD, then Create shape from mesh and Convert to solid. I want to make the face of the model perfectly flat. I've done this with other models by creating a cube, then using a boolean between the two objects. However, when I attempt to make a boolean intersection here, it fails with Cannot compute Inventor representation for the shape of Common, and everything disappears in the viewport.

Alternatively, I created a 2D rectangle, then Part Slice, but this also failed with no slice performed and no error.

I tried many other methods, e.g. refining the shape before the boolean, refining the shape before converting to solid, attaching the cube on the other side and calculating the boolean difference, increasing/decreasing the overlap, Refine shape, Create simple copy, inverting the faces with Reverse shapes, playing with cross-sections. Nothing seemed to work.

I was ready to attach the FreeCAD file to this post, but at 48M apparently that is too large. I didn't know what the "tolerance for sewing shape" was when creating a shape from mesh, but I thought this might reduce the file size. I went back and set this at 0.2 instead of 0.1. However, this time the boolean worked perfectly! The file was actually larger now, at 67M, so I can't attach this either, but attached is a screenshot of the final model after the boolean.

System details
OS: Arch Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16158 (Git)
Build type: Release
Branch: makepkg
Hash: 783e1346c7a078f5265c3f0c6a927d09a8c1fe70
Python version: 3.8.2
Qt version: 5.14.2
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/United Kingdom (en_GB)
Attachments
Screenshot_20200616_223821.png
Screenshot_20200616_223821.png (75.03 KiB) Viewed 3132 times
Norus
Posts: 169
Joined: Tue Oct 13, 2015 9:33 am

Re: Create shape from mesh causes failure with default sewing tolerance

Post by Norus »

Hello I have a similar situation,

to convert mesh (bone) to a shape. have no idea, where is the button create shape from mesh?

If there are larger FreeCAD-files I use Dropbox and add the link to this FORUM-file

good luck

norus
drmacro
Veteran
Posts: 9001
Joined: Sun Mar 02, 2014 4:35 pm

Re: Create shape from mesh causes failure with default sewing tolerance

Post by drmacro »

Norus wrote: Mon Jun 29, 2020 2:14 pm Hello I have a similar situation,

to convert mesh (bone) to a shape. have no idea, where is the button create shape from mesh?

If there are larger FreeCAD-files I use Dropbox and add the link to this FORUM-file

good luck

norus
Attachments
ShapeFromMEsh.png
ShapeFromMEsh.png (121.29 KiB) Viewed 3016 times
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."
chrisb
Veteran
Posts: 54280
Joined: Tue Mar 17, 2015 9:14 am

Re: Create shape from mesh causes failure with default sewing tolerance

Post by chrisb »

Norus wrote: Mon Jun 29, 2020 2:14 pm Hello I have a similar situation,
This is indeed a completely different situation: you cannot invoke the command. If you have further problems you should create a new topic.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Norus
Posts: 169
Joined: Tue Oct 13, 2015 9:33 am

Re: Create shape from mesh causes failure with default sewing tolerance

Post by Norus »

thanks, I didn´t recognize the german translation.

using this, there is a new intro in the tree but nothing happens, even if the stl is a solid. In the example you used the problem occures
Dignius
Posts: 7
Joined: Thu Jul 27, 2017 11:06 am

Re: Create shape from mesh causes failure with default sewing tolerance

Post by Dignius »

Norus wrote: Mon Jun 29, 2020 3:03 pm using this, there is a new intro in the tree but nothing happens, even if the stl is a solid. In the example you used the problem occures
Sorry, I don't quite understand. Are you saying that you can replicate the problem in the original post?
Norus
Posts: 169
Joined: Tue Oct 13, 2015 9:33 am

Re: Create shape from mesh causes failure with default sewing tolerance

Post by Norus »

Hello Dignius,

I think I started a little confusion. I have the problem to create a volume from mesh. In the first moment I thought it´s similar to yours.

Large FreeCAD-files I send by dropbox-link, so the community can try it.

that´s all I want to say.

have a good time
Post Reply