I am cutting a messh by a plane using the GUI perfectly.
I have looked for a Python command that reproduces this instructions and I arrived to:
- obj.Mesh.cut(list_of_points)
- obj.Mesh.trim(list_of_points)
I think I missundertand these two commands, because when I give them a list of points (vertices) Plane.shape.Vertexes, I get the following error:
Traceback (most recent call last):
File "<input>", line 1, in <module>
ReferenceError: This object is immutable, you can not set any attribute or call a non const method
Is there a direct Python command that replicates Trim_By_plane GUI buttom processes?
Thank you,
OS: Windows 10 Version 2004
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