mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Count joints near 180 degrees as straight
This commit is contained in:
parent
a08523d746
commit
5d6a1f30c4
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ vec3 step_to_corner(vec3 point, vec3 tangent, vec3 unit_normal, float joint_angl
|
|||
float cos_angle = cos(joint_angle);
|
||||
float sin_angle = sin(joint_angle);
|
||||
|
||||
if (cos_angle > COS_THRESHOLD) return step;
|
||||
if (abs(cos_angle) > COS_THRESHOLD) return step;
|
||||
|
||||
// Below here, figure out the adjustment to bevel or miter a joint
|
||||
if (flat_stroke == 0){
|
||||
|
|
Loading…
Add table
Reference in a new issue