Create mesh from shape... std::bad_alloc

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!
User avatar
ooveif9
Posts: 35
Joined: Thu Mar 22, 2018 8:29 pm
Location: Weimar

Create mesh from shape... std::bad_alloc

Post by ooveif9 »

I'm following this tutorial:
https://www.freecadweb.org/wiki/index.p ... STL_or_OBJ

When I try

Code: Select all

Create Mesh from Shape...
I get this error:

Code: Select all

Unhandled std::exception caught in GUIApplication::notify.
The error message is: std::bad_alloc

OS: Linux Mint 18.3 Sylvia
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13509 (Git)
Build type: None
Branch: master
Hash: 0258808ccb6ba3bd5ea9312f79cd023f1a8671b7
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: C/Default (C)
Attachments
case-rework7-forum.fcstd
(1015.96 KiB) Downloaded 68 times
User avatar
ooveif9
Posts: 35
Joined: Thu Mar 22, 2018 8:29 pm
Location: Weimar

Re: Create mesh from shape... std::bad_alloc

Post by ooveif9 »

Seems the default method 'Mefisto' has this problem, it works though in 'Standard'.
However some parts of the model get displaced in the mesh. Any Idea why this is?
Attachments
Screenshot from 2018-04-07 21-13-01.png
Screenshot from 2018-04-07 21-13-01.png (35.71 KiB) Viewed 2819 times
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Create mesh from shape... std::bad_alloc

Post by NormandC »

ooveif9 wrote: Sat Apr 07, 2018 7:14 pm Any Idea why this is?
How can we know? Your file does not contain the original mesh.
User avatar
ooveif9
Posts: 35
Joined: Thu Mar 22, 2018 8:29 pm
Location: Weimar

Re: Create mesh from shape... std::bad_alloc

Post by ooveif9 »

Are you saying it creates the mesh just fine for you?
The same displacement happens when I do 'refine shape' from the Part bench. I feel like I am missing something fundamental, but don't know what.

NormandC wrote: Sat Apr 07, 2018 7:25 pm
ooveif9 wrote: Sat Apr 07, 2018 7:14 pm Any Idea why this is?
How can we know? Your file does not contain the original mesh.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Create mesh from shape... std::bad_alloc

Post by NormandC »

Duh. I'm saying you didn't provide the mesh for us to test!!!
User avatar
ooveif9
Posts: 35
Joined: Thu Mar 22, 2018 8:29 pm
Location: Weimar

Re: Create mesh from shape... std::bad_alloc

Post by ooveif9 »

I know what you are saying, but why are you saying that?
Can't you just create the mesh?
NormandC wrote: Sat Apr 07, 2018 7:59 pm Duh. I'm saying you didn't provide the mesh for us to test!!!
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Create mesh from shape... std::bad_alloc

Post by NormandC »

ooveif9 wrote: Sat Apr 07, 2018 8:51 pm Can't you just create the mesh?
ooveif9 wrote: Sat Apr 07, 2018 7:14 pm However some parts of the model get displaced in the mesh. Any Idea why this is?
Yeah sure, I will try to create a model that looks like your mesh, then export it to a mesh to see if I get the same as you.

OK, I've wasted enough time with you. :roll:

ooveif9 --> ignored from now on
User avatar
ooveif9
Posts: 35
Joined: Thu Mar 22, 2018 8:29 pm
Location: Weimar

Re: Create mesh from shape... std::bad_alloc

Post by ooveif9 »

I think there is a deliberate misunderstanding,

-Select all
-Mesh Design WB
-Meshes -> Create Mesh from Shape, Pick Standard Method.

VOILA, took 5 seconds.

If I try to upload the file with object and derived mesh, then it's too big for this forum. So no, I cant upload the mesh.
User avatar
bejant
Veteran
Posts: 6075
Joined: Thu Jul 11, 2013 3:06 pm

Re: Create mesh from shape... std::bad_alloc

Post by bejant »

ooveif9 wrote: Sat Apr 07, 2018 9:03 pm-Select all
Don't select All. Instead, from the history tree only pick the completed pieces that you want to mesh. From your model, what are the pieces you want to convert to a mesh?
ooveif9 wrote: Sat Apr 07, 2018 9:03 pm -Meshes -> Create Mesh from Shape, Pick Standard Method.
After you have selected the things you want to convert to a mesh, try File > Export and at the bottom of the pop-up window choose the mesh file type of your liking.
User avatar
ooveif9
Posts: 35
Joined: Thu Mar 22, 2018 8:29 pm
Location: Weimar

Re: Create mesh from shape... std::bad_alloc

Post by ooveif9 »

I've tried both, selecting the objects from the history tree and using the box selection in the viewer to select the items. I found that both do the same thing, but maybe I'm wrong. I want to mesh everything that's visible, but the displacement happens of all the objects inside the part jackboard002, they will get displaced when turning them into a mesh or the 'refine shape' function.
bejant wrote: Sun Apr 08, 2018 4:08 am
ooveif9 wrote: Sat Apr 07, 2018 9:03 pm-Select all
Don't select All. Instead, from the history tree only pick the completed pieces that you want to mesh. From your model, what are the pieces you want to convert to a mesh?
ooveif9 wrote: Sat Apr 07, 2018 9:03 pm -Meshes -> Create Mesh from Shape, Pick Standard Method.
After you have selected the things you want to convert to a mesh, try File > Export and at the bottom of the pop-up window choose the mesh file type of your liking.
Post Reply