When writing Python to build shapes it'd be very useful to have the Universal and Null sets available in the Part API. (I suspect these are already used internally.) Then one could write:
Part.Shape() delivers the null shape. A universal shape doesn't exist, only a half-space solid is supported by the kernel.
The best what you can do to have a universal shape is creating a sphere with a very high radius:
wmayer wrote: ↑Thu Oct 01, 2020 6:35 pm
Part.Shape() delivers the null shape. A universal shape doesn't exist, only a half-space solid is supported by the kernel.
The best what you can do to have a universal shape is creating a sphere with a very high radius:
Hello @AdrianBowyer, It's excellent to see you on this forum! Just a quick question, what version of FreeCAD are you using? (please copy/paste About) Thanks!
Kunda1 wrote: ↑Thu Aug 05, 2021 9:59 am
Hello @AdrianBowyer, It's excellent to see you on this forum! Just a quick question, what version of FreeCAD are you using? (please copy/paste About) Thanks!
OS: Ubuntu 20.04.2 LTS (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.2)
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)
a = Part.Shape() # Null shape
b = Part.makeBox(1,1,1)
c = b.cut(a)
c.isNull()
c = a.cut(b)
c.isNull()
c = a.fuse(b)
c.isNull()
c = b.fuse(a)
c.isNull()
c = a.common(b)
c.isNull()
c = b.common(a)
c.isNull()