SolveSpace Logo SOLVESPACE -- parametric 2d/3d CAD
Examples
Tutorials
Features
Download
Reference
Technology
Library
Forum
Contact
USER FORUM

(you are viewing a thread; or go back to list of threads)

Programmatic Construction of 3D Objects in Solvespace (by Jonathan Bachrach)
I've been experimenting with SolveSpace's programmatic interface to its solver. Ultimately I'm trying to understand how to build 3D polyhedra and related geometry. I've been able to build simple 3D polyhedra like a Tetrahedron (without using workplanes) but now want to create one tet inside another such that the outer one is offset from the inner one by some amount. Ideally I could introduce distance constraints between each corresponding face plane.

In trying to figure out how to do this I determined that I don't know how workplanes relate to 3D objects like their corresponding extruded 3D objects. How are workplanes connected to their extrusions? Is there a copy of the Workplane geometry lifted into 3D but constrained to coincide?

I tried a simple version of this of a 3D object constructed out of two rectangles, one constructed in the xy plane and one in the yz plane and joined through one of the y axis line segments. Each rectangle is constructed out of line segments connecting 2D points in their respective workplane. How to I then weld those two rectangles along a common edge? I tried constraining 2D points between rectangles to be coincident but that fails to solve. I tried to lift each rectangle into 3D and connecting 2D rectangle to their 3D rectangles and then constraining the 3D points along one of y axis line segments. This also fails. I'm just confused how this works in SolveSpace. I tried this in the interactive SolveSpace app but it's hard to see how the extruded object connects to the corresponding workplane. Any help (including pointing to the section of the code) would be appreciated.
Wed Dec 16 2020, 14:48:01
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):
© 2008-2022 SolveSpace contributors. Most recent update June 2 2022.