Search found 8 matches

by mntruell
Tue Jul 12, 2022 2:48 am
Forum: Python scripting and macros
Topic: Convert STEP to Point Cloud?
Replies: 3
Views: 2289

Convert STEP to Point Cloud?

How can I convert a STEP file to a Point Cloud in Python without loading the GUI?
by mntruell
Mon Jul 04, 2022 2:32 am
Forum: Python scripting and macros
Topic: Get all Shells/Faces/Edges/Vertices at a particular point in 3D space
Replies: 8
Views: 943

Re: Get all Shells/Faces/Edges/Vertices at a particular point in 3D space

How do I transform the result of valueAt into a correct 3D point? I'm trying to use it to produce a point cloud of a BREP, but it is giving incorrect results.
by mntruell
Thu Jun 30, 2022 2:44 am
Forum: Python scripting and macros
Topic: Traversing the Entire B-Rep of a STEP file
Replies: 3
Views: 627

Re: Traversing the Entire B-Rep of a STEP file

How do I get a parametric description of each Face or Edge?
by mntruell
Wed Jun 29, 2022 4:07 am
Forum: Python scripting and macros
Topic: Get all Shells/Faces/Edges/Vertices at a particular point in 3D space
Replies: 8
Views: 943

Re: Get all Shells/Faces/Edges/Vertices at a particular point in 3D space

How do I evaluate the subelement at the supplied parameters?
by mntruell
Wed Jun 29, 2022 1:18 am
Forum: Python scripting and macros
Topic: Traversing the Entire B-Rep of a STEP file
Replies: 3
Views: 627

Traversing the Entire B-Rep of a STEP file

Given an imported B-Rep, how can I do the following with the FreeCAD Python API: 1) Enumerate all Shells, Faces, Wires, Edges, and Vertices 2) Get the parametric description of each Shell/Face/Wire/Edge/Vertex 3) Get the adjacency info of each (i.e. how can I know which Faces are connected to which ...
by mntruell
Mon Jun 27, 2022 2:25 am
Forum: Python scripting and macros
Topic: Get all Shells/Faces/Edges/Vertices at a particular point in 3D space
Replies: 8
Views: 943

Get all Shells/Faces/Edges/Vertices at a particular point in 3D space

Using Python, is there a way to look up all objects (shells/faces/edges/vertices) in a body that intersect with a particular point in 3D space? For example, imagine my body is a cube occupying [0, 1]x[0, 1]x[0, 1]. Given the point (0, 0, 0.5), I'd like to get the Python edge from (0, 0, 0) to (0, 0,...