Problem with Mesh cutting and SCAD

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
Blownaway
Posts: 36
Joined: Sun May 05, 2019 4:20 pm

Problem with Mesh cutting and SCAD

Post by Blownaway »

Hello!

I need to be able to cut in a mesh.
The funktion is in the mesh design WB. I have installed the SCAD program and configurated it acording to FreeCad hompage.

The problem is when i use the "diference" cuting tool i got this message:

Any ides how i can fix this?
Wery thankful for help whith this issue :)
Fault mesh design.jpg
Fault mesh design.jpg (126.93 KiB) Viewed 848 times
OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Swedish/Sweden (sv_SE)
User avatar
adrianinsaval
Veteran
Posts: 5544
Joined: Thu Apr 05, 2018 5:15 pm

Re: Problem with Mesh cutting and SCAD

Post by adrianinsaval »

can you show us what you have configured and what version of openscad you have installed? what instructions did you follow?
Blownaway
Posts: 36
Joined: Sun May 05, 2019 4:20 pm

Re: Problem with Mesh cutting and SCAD

Post by Blownaway »

Absolutly!

here is the instruktions i used (and the config i did in freecad):
https://wiki.freecadweb.org/Import_OpenSCAD_code

Open SCAD version:
OpenSCAD version 2021.01
heda
Veteran
Posts: 1348
Joined: Sat Dec 12, 2015 5:49 pm

Re: Problem with Mesh cutting and SCAD

Post by heda »

dunno what is going on, but...

- you seem to have non-ascii chars / spaces in your install / filepaths
- -o might be the typical "outputfile" arg, however based on the screen it looks like it is freecad that is called and not scad, weird...

logging does not seem to give any output on mesh commands...

anyhow, if you know a minimum of python you can probably figure out this by yourself
(going out on a limb here and guessing it is related to your specific computer..., installation or naming in one way or another...)

this is printed in the py console when making a mesh-bool

Code: Select all

>>> import OpenSCADUtils
>>> mesh = OpenSCADUtils.meshoptempfile('difference',(App.ActiveDocument.Cube.Mesh,App.ActiveDocument.Sphere.Mesh))
so you can just find that .py file on your installation (like ?/FreeCAD/Mod/OpenSCAD), copy the functions needed into a macro-file, put in some strategic printing on paths or scad calls, run the macro, and if the calls do not work when you run them yourself from a console they wont work from fc either...
(or just put in the prints in the original file and use the commands as usual, but then you have to restart fc every time you change the .py file - or reload it)

btw, in OpenSCADUtils there are functions that you can use that should raise their hand if it cannot find the scad.exe properly.

or if you don't want to bother to chase it down, do it manually, i.e. export the files to disk from fc, do the bool in scad gui, export from there and reimport to fc.
Blownaway
Posts: 36
Joined: Sun May 05, 2019 4:20 pm

Re: Problem with Mesh cutting and SCAD

Post by Blownaway »

Tnx for the help.

Im in a hurry so i try doing it in the SCAD GUI for now. and trubleshoot acc to yor instruktion later on.
User avatar
adrianinsaval
Veteran
Posts: 5544
Joined: Thu Apr 05, 2018 5:15 pm

Re: Problem with Mesh cutting and SCAD

Post by adrianinsaval »

Blownaway wrote: Wed May 25, 2022 5:12 am (and the config i did in freecad):
I meant, can you show us what path you have configured in your pc
heda wrote: Wed May 25, 2022 7:40 pm - you seem to have non-ascii chars / spaces in your install / filepaths
I only now noticed this, and it's very likely the cause for the error. @Blownaway can you test using freecad 0.20? I think several bugs with special characters in paths were solved during the dev cycle. If it sill doesn't work please test creating a new user with just latin characters.
Post Reply