Search found 903 matches

by reox
Wed Sep 29, 2021 10:56 am
Forum: Python scripting and macros
Topic: [solved] makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null
Replies: 10
Views: 847

Re: [solved] makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null

yes: error_fc.png although, it seems to work for the meshing, in the FEM subforum, other methods were discussed already. My mistake. Didn't apply the correct Mode for the Slice in my snippet. It's fixed above in my previous message. Could you test again ? ahh okay, yes that seems to work as well! T...
by reox
Wed Sep 29, 2021 9:39 am
Forum: Python scripting and macros
Topic: [solved] makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null
Replies: 10
Views: 847

Re: [solved] makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null

yes:
error_fc.png
error_fc.png (28.95 KiB) Viewed 406 times
although, it seems to work for the meshing, in the FEM subforum, other methods were discussed already.
by reox
Wed Sep 29, 2021 9:35 am
Forum: Python scripting and macros
Topic: [solved] makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null
Replies: 10
Views: 847

Re: makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null

openBrain wrote: Wed Sep 29, 2021 9:31 am I though don't understand why you make so complex things :
Because otherwise I can not use the circular face as a mesh region. Or is there another, simpler way to do that?
So far, the BooleanFragment -> CompoundFilter -> MeshRegion seemed to be the only way to achieve that.
by reox
Wed Sep 29, 2021 9:16 am
Forum: Python scripting and macros
Topic: [solved] makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null
Replies: 10
Views: 847

Re: makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null

Chris_G wrote: Wed Sep 29, 2021 8:46 am So you need to explicitly recompute the doc before making the boolean fragment :
Ahhh okay! Thank you, that indeed solves the problem!
by reox
Wed Sep 29, 2021 8:06 am
Forum: Python scripting and macros
Topic: [solved] makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null
Replies: 10
Views: 847

Re: makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null

I want to create a mesh region later on using the section. What I found so far is, that I need this Boolean Fragment and a Compound Filter to do that. If I apply the compound filter directly, I can not select the circular section on the sphere's surface. There are also threads where this is describe...
by reox
Wed Sep 29, 2021 6:35 am
Forum: Python scripting and macros
Topic: [solved] makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null
Replies: 10
Views: 847

[solved] makeBooleanFragments fails with <class 'Part.OCCError'>: Base shape is null

I want to create a macro to mesh some geometry automatically and need a BooleanFragment in there. I clicked through the process and copied the python commands to a new macro: import BOPTools.SplitFeatures active = App.ActiveDocument sphere = active.addObject("Part::Sphere", "Sphere&qu...
by reox
Tue May 04, 2021 9:07 am
Forum: Help on using FreeCAD
Topic: [solved] BSpline Surface approximation (RE Workbench)
Replies: 5
Views: 393

Re: BSpline Surface approximation (RE Workbench)

I once saw a demo of Geomagic. Is this the function that creates a huge single NURBS from a mesh? Could be NURBS, I never used it unfortunately... A colleague used Fusion360 to create T-Spline surfaces from quad-meshes. That works surprisingly well, however it depends strongly on the quality of the...
by reox
Tue May 04, 2021 5:59 am
Forum: Help on using FreeCAD
Topic: [solved] BSpline Surface approximation (RE Workbench)
Replies: 5
Views: 393

Re: BSpline Surface approximation (RE Workbench)

A watertight alien spaceship? No, more like a potato - or maybe, yes, could be an alien spaceship :mrgreen: potato.PNG Is it maybe possible that this function can only create non-closed surfaces? I.e., it would work for a 2d surface embedded in space but not for my object? I tried now to do Part: S...
by reox
Mon May 03, 2021 5:46 pm
Forum: Help on using FreeCAD
Topic: [solved] BSpline Surface approximation (RE Workbench)
Replies: 5
Views: 393

[solved] BSpline Surface approximation (RE Workbench)

I would like to test the BSpline Surface approximation in the reverse engineering workbench, because I have a use-case where this could come in handy. However, I can not figure out how to use it and all I can create is abstract art: art.PNG Okay, I have to admit, I was not trying very hard :mrgreen:...
by reox
Sat Apr 10, 2021 7:50 am
Forum: Help on using FreeCAD
Topic: [solved] Get Length of BSpline in Sketcher
Replies: 7
Views: 357

Re: [solved] Get Length of BSpline in Sketcher

mario52 wrote: Fri Apr 09, 2021 11:35 am hi

@reox you can use Macro_FCInfo Image ... outside sketcher

mario
yes, outside ;) I was pretty sure that I got lengths of curves from inside the sketcher... But I guess I dreamed that :mrgreen: