3d: min dot needs to be square
Given that we compare the dot product (square of length) to s_min_dot, it means that s_min_dot also needs to be square, or we wind up converting line segments into circles that are visually distinct from circles, leading to gaps in polylines.
This commit is contained in:
parent
e01348cccc
commit
0823692dda
|
@ -85,7 +85,7 @@ public:
|
|||
bool IsPointInside( const SFVEC2F &aPoint ) const override;
|
||||
};
|
||||
|
||||
static const float s_min_dot = (FLT_EPSILON * 4.0f) ;
|
||||
static const float s_min_dot = (FLT_EPSILON * 4.0f * FLT_EPSILON * 4.0f) ;
|
||||
|
||||
/**
|
||||
* @brief Segment_is_a_circle - check if segment start and end is very close to each other
|
||||
|
|
Loading…
Reference in New Issue