Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Point normals (again)

    SDK Help
    0
    21
    13.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 06/08/2009 at 03:07, xxxxxxxx wrote:

      Quote: Originally posted by Giblet on 05  August 2009
      >
      > * * *
      >
      > ....in your code, I'd also change:
      >
      >

      \>     
      \>     
      \>       
      \>     > vNorm = Vector(0,0,0);
      \>     
      \>     
      \>     
      \>     
      \>     to
      \>     
      \>     
      \>     
      \>     
      \>     vNorm = Vector(0,1,0); //default to pointing straight up
      \>     
      \>      
      \>     
      \>     ....  
      \>     > 
      \> 
      \> 
      

      >
      > * * *
      D'oh!  Ignore the above suggestion... or at least reset it to all zeros before you enter that loop below there - I was just trying to account for points not connected to ANY polygons, but you should probably handle that error condition differently anyway.
      @Matthias - thanks for the corrections/additions... I'd forgotten about th normalization, so that extra divide at the end of the loop is not needed.

      1 Reply Last reply Reply Quote 0
      • First post
        Last post