vcg-uvic / viper

Open-source code for VIPER -- Volume Invariant Position-based Elastic Rods
Apache License 2.0
903 stars 105 forks source link

some question about parameter #11

Open Entongsu opened 3 years ago

Entongsu commented 3 years ago

Hi, it is a great project. I have some confusement over some paramter, such as "skinning,dist"..... and so on. I am not sure how to set the value of these. And I refer to "C_distancemax" function. I am not sure get "max_distance". And the "C_bilap" function is used for? And I am not sure what is the meaning of "A" and "ids" in this function. Could you give me some hints over this. Looking forward to your reply. Thank you!

drebain commented 3 years ago

C_distancemax and C_bilap are maximum distance and bilaplacian constraints.

In the first, maximum_distance is the distance which two spheres are constrained not to exceed.

The second, C_bilap is intended to applied individually to each of a chain of connected spheres, the id's of which are passed in through A. The parameter i identifies which of the spheres the current constraint applies to. You can find an example of it being used here.

Entongsu commented 3 years ago

Thank you for your detailed explanation. I have some confusement. In the coding, in the function "C_shape2_solve", I am not sure what is the meaning of "qas" and "qbs". Could you give me some hints over this ? Looking forward to your reply. Thank you!