dilevin / computer-graphics-mass-spring-systems

Computer Graphics Assignment – Mass Spring Systems
1 stars 2 forks source link

Pinned vertices #7

Closed RaihanFaruque closed 4 years ago

RaihanFaruque commented 4 years ago

How do I add the term 0.5wtr((Cp - Cp_rest).transpose()((Cp - Cp_rest))) to Q and b? The trace is a scalar value

abhimadan commented 4 years ago

You add this to the function being optimized, not the linear system being solved. So the derivatives of these terms contribute to Q and b.