taichi icon indicating copy to clipboard operation
taichi copied to clipboard

how to pass field parameters

Open evilzhou opened this issue 4 years ago • 1 comments

there is such a variable:

var = ti.Vector.field(vertices.shape[1], dtype=ti.cfg.default_fp, shape=vertices.shape[0])
var.from_numpy(vertices)

How to define a kernel function parameter type to receive this variable as a parameter?

evilzhou avatar Oct 20 '22 11:10 evilzhou

ti.template()

evilzhou avatar Oct 20 '22 12:10 evilzhou