Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python 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

    Brush Tool Smooth Algorithm?

    SDK Help
    0
    4
    335
    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

      On 03/09/2016 at 06:52, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R12+ 
      Platform:   Windows  ; Mac  ;  Mac OSX  ; 
      Language(s) :     C++  ;

      ---------
      Howdy,

      Well, I want to duplicate the behavior of the Brush tool's Smooth option. Can someone point me in the right direction?

      Adios,
      Cactus Dan

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 05/09/2016 at 07:30, xxxxxxxx wrote:

        Hi Dan,

        we can't disclose the source of the Brush Tool's Smooth algorithm. Sorry.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 05/09/2016 at 07:54, xxxxxxxx wrote:

          For smoothing, you need to take the average position of the neighboring vertices and assign it to the current vertex position. The neighbor class can give you the  neighboring positions.
          You can have an Iterations parameter that repeats this operation to increase the smoothness.

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            On 07/09/2016 at 05:27, xxxxxxxx wrote:

            Howdy,

            Yes, I had in mind to use the Neighbor class. I was just curious if there were any specific white papers I should be studying (so that I'm not reinventing the wheel, so to speak😉).

            Adios,
            Cactus Dan

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