Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create shapes with int size #281

Open
paulmelnikow opened this issue Dec 10, 2021 · 0 comments
Open

Can't create shapes with int size #281

paulmelnikow opened this issue Dec 10, 2021 · 0 comments

Comments

@paulmelnikow
Copy link
Member

Via lacecore:

>>> from lacecore import shapes
>>> m = shapes.cube(origin=np.zeros(3), size=1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/pnm/code/purl-anatomia/.venv/lib/python3.7/site-packages/lacecore/shapes/_shapes.py", line 50, in cube
    return _mesh_from_shape_fn(shapes.cube, origin=origin, size=size)
  File "/Users/pnm/code/purl-anatomia/.venv/lib/python3.7/site-packages/lacecore/shapes/_shapes.py", line 14, in _mesh_from_shape_fn
    *args, ret_unique_vertices_and_faces=True, **kwargs
  File "/Users/pnm/code/purl-anatomia/.venv/lib/python3.7/site-packages/polliwog/shapes/_shapes.py", line 102, in cube
    raise ValueError("`size` should be a number")
ValueError: `size` should be a number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant