-
Notifications
You must be signed in to change notification settings - Fork 2
Feature: Enable Sketches object visible in web view #49
Comments
First solutionOn investigation I found, OBJ support Line segment element. With this we can load sketch object to online viewer. However, current Arch ImportOBJ.py not exporting 2D objects, it only supports shapes which have faces. I created below OBJ file manually, added a rectangle:
After adding support of line segments to 3D viewer, this is how above OBJ file looks like: We need to update Arch ImportOBJ module code to support 2D objects. For line segment, we simply add edge start and last vertexes to OBJ and then add For Curves, first we need to find points on curve by >>> pts = w.discretize(10)
>>> for i, j in zip(pts[:9], pts[1:]):
... Draft.makeLine(i, j) With this we can load any type of 2D shape to 3D web viewer. Second solution:Extrude the 2D sketch object using Part Extrude feature. Set extrude face length to http://ec2-54-234-132-150.compute-1.amazonaws.com:8080/share/64ba8baa7d037ab99acfa774 |
Pros and cons? |
I am trying third party DXF loader. If it works, then FC lamdba will generate two file OBJ and DXF. OBJ for 3D shapes and DXF for 2D shape. Then in viewer will load both file on same scene. |
FC-worker PR: Ondsel-Development/FC-Worker#1 |
…objects_in_obj #49, frontend: Support 2d objects
Ondsel-server PR: #83 |
No description provided.
The text was updated successfully, but these errors were encountered: