Skip to content

Mathematical weakness if a edge line points directly in the center #5

@furun

Description

@furun

I ask just for curiosity.
Is there a clean mathematical way to solve the following problem?

There is a Mathematical weakness if a edge line points directly in the center.
So if the two points of a edge are in a straight line to the center (0,0,0).

I speculate, it is the reason for the noise used in Animate::Animate(), to prevent that edge lines point directly in to the center.

Animate::Animate () {
...
    noise0 = 0.005f;
    noise1 = 0.0005f; 

For example:
In this code part the resolut for n b is infinite/NaN, because r3_norm(N) and r3_norm(B) result is 0, if the edge line points to center.

inline float stereo_project (const Vect& x, const Vect& dx, Vect& y, Vect& N, Vect& B) {//projects a tangent vector : R^3 >--> S^3 --> R^3 to normal vectors 
...
    float n = scale / r3_norm(N);
    float b = scale / r3_norm(B); 

Or the Edge tube of such edges gets wobbly because it misses the adjustment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions