You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by manuel-koch May 15, 2023
I'm new to hpp-fcl and can't find useful documentation about the python interface.
There seem to be some c++ code examples ( mostly doxygen stuff ) but I have difficulties converting them to python.
I'm trying to replicate some functionality from the original fcl library.
In their example they have something like
# FCL for a non-convex meshverts=np.array([[1.0, 1.0, 1.0],
[2.0, 1.0, 1.0],
[1.0, 2.0, 1.0],
[1.0, 1.0, 2.0]])
tris=np.array([[0,2,1],
[0,3,2],
[0,1,3],
[1,2,3]])
m=fcl.BVHModel()
m.beginModel(len(verts), len(tris))
m.addSubModel(verts, tris)
m.endModel()
# FCL for a convex meshverts=np.array([[1.0, 1.0, 1.0],
[2.0, 1.0, 1.0],
[1.0, 2.0, 1.0],
[1.0, 1.0, 2.0]])
tris=np.array([[0,2,1],
[0,3,2],
[0,1,3],
[1,2,3]])
faces=np.concatenate((3*np.ones((len(tris), 1), dtype=np.int64), tris), axis=1).flatten()
c=fcl.Convex(verts, len(tris), faces)
# how would it look like for HPP-FCL ??
How would that look like for hpp-fcl ?
Thank you for helping getting starting with hpp-fcl.
The text was updated successfully, but these errors were encountered:
Discussed in #422
Originally posted by manuel-koch May 15, 2023
I'm new to hpp-fcl and can't find useful documentation about the python interface.
There seem to be some c++ code examples ( mostly doxygen stuff ) but I have difficulties converting them to python.
I'm trying to replicate some functionality from the original fcl library.
In their example they have something like
How would that look like for hpp-fcl ?
Thank you for helping getting starting with hpp-fcl.
The text was updated successfully, but these errors were encountered: