mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Add condition for auto-miter joints
This commit is contained in:
parent
dcb166e21b
commit
2b90f0b244
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ void create_joint(float angle, vec2 unit_tan, float buff,
|
|||
if(abs(angle) < ANGLE_THRESHOLD){
|
||||
// No joint
|
||||
shift = 0;
|
||||
}else if(joint_type == MITER_JOINT){
|
||||
}else if(joint_type == MITER_JOINT || (joint_type == AUTO_JOINT && angle > 0.9 * PI)){
|
||||
shift = buff * (-1.0 - cos(angle)) / sin(angle);
|
||||
}else{
|
||||
// For a Bevel joint
|
||||
|
|
Loading…
Add table
Reference in a new issue