libigl-python-bindings icon indicating copy to clipboard operation
libigl-python-bindings copied to clipboard

ValueError: Invalid dimension for argument v_init. Must have shape (#vertices, 2) for triangle mesh inputs.

Open successhaha opened this issue 4 years ago • 0 comments

I made this error when using IGl.BBW.This is the code I used b, bc = boundary_conditions(V, F, C, P, BE, CE) bbw = igl.BBW(0, 2) print(dir(igl.BBW)) print("show", V, V.shape,F.shape,b.shape, bc.shape) W = bbw.solve(V[:, 0:2], F, b, bc)

['class', 'delattr', 'dir', 'doc', 'eq', 'format', 'ge', 'getattribute', 'gt', 'hash', 'init', 'init_subclass', 'le', 'lt', 'module', 'ne', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'solve'] show [[ 48. 247. 0. ] [ 32. 241. 0. ] [ 23. 227. 0. ] ... [122.14293226 139.11975114 0. ] [ 74.31105382 94.1937588 0. ] [ 83.24588549 136.3194767 0. ]] (4285, 3) (8248, 3) (325,) (325, 16) Traceback (most recent call last): File "C:/Users/123/Desktop/bbw_python-master/cloth_demo.py", line 136, in W = bbw.solve(V[:, 0:2], F, b, bc) ValueError: Invalid dimension. Argument V must have shape (#vertices, 3)

successhaha avatar Nov 22 '21 06:11 successhaha