Improvement: Improved vector normalization in three functions. Fix: Added checking for the success of edge plane generation.
Improvement: Improved vector normalization in three functions.
Fix: Added checking for the success of edge plane generation.

forrestv/opende,forrestv/opende,forrestv/opende,forrestv/opende,forrestv/opende