jscad / OpenJSCAD.org

JSCAD is an open source set of modular, browser and command line tools for creating parametric 2D and 3D designs with JavaScript code. It provides a quick, precise and reproducible method for generating 3D models, and is especially useful for 3D printing applications.
https://openjscad.xyz/
MIT License
2.65k stars 514 forks source link

2D shapes are not being drawn on grid (locally, working on openjscad.xyz) #1264

Open tsdexter opened 1 year ago

tsdexter commented 1 year ago

Expected Behavior

2D geometry should show on the grid

Actual Behavior

Examples from openjscad.xyz or any 2D geometry are not being rendered when I'm working locally using jscad-now

Steps to Reproduce the Problem

  1. create a jscad file return polygon({ points: [[-3, -1], [3, -1], [3.5, 2], [1.5, 1], [0, 2], [-1.5, 1], [-3.5, 2]] })
  2. run it with jscad-now or jscad-react locally
  3. polygon is not rendered (it does render both on openjscad.xyz and using jscad-react on codesandbox, so I'm not sure what's going on)

Specifications

z3dev commented 1 year ago

@tsdexter please post this issue with jscad-now

https://github.com/danmarshall/jscad-now

tsdexter commented 1 year ago

@z3dev It also happens to me with jscad-react, only locally, not in codesandbox, so I'm not sure it's related to jscad-now specifically. I'll try to reproduce it using the built-in web viewer and close if not successful.