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

polyhedron creation and set operation #98

Open
mvnayagam opened this issue Apr 29, 2022 · 0 comments
Open

polyhedron creation and set operation #98

mvnayagam opened this issue Apr 29, 2022 · 0 comments

Comments

@mvnayagam
Copy link

Dear Developer and Users,
i try to create skgeom Polyhedron as follows

import skgeom
a = skgeom.Point3(4, 5, 4)
b = skgeom.Point3(2, 1, 4)
c = skgeom.Point3(3, 6, 4)
d = skgeom.Point3(5, 2, 4)
print('a:', a)

skgeom.Polyhedron3([a, b, c, d])

But I get the following error

Traceback (most recent call last):
File "scikit_geometry.py", line 12, in
poly = sg.Polyhedron_3([sg.Point3(0, 0, 0),
TypeError: init(): incompatible constructor arguments. The following argument types are supported:
1. skgeom._skgeom.Polyhedron_3()
2. skgeom._skgeom.Polyhedron_3(arg0: skgeom._skgeom.Polyhedron_3)

Invoked with: [PointC3(4, 5, 4), PointC3(2, 1, 4), PointC3(3, 6, 4), PointC3(5, 2, 4)]

but if I call skgeom._skgeom.Polyhedron_3() then it creates empty polyhedron, though I do not able to view it

So may I ask, How to create polyhedron in skgeom?

thank you

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