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

    sweep nurbs like custom generator

    SDK Help
    0
    3
    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

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

      On 29/06/2004 at 09:18, xxxxxxxx wrote:

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

      ---------
      Hi forum;

      I want to do a plugin generator with two input splines like e. g. c4d's Sweep Nurbs. What ist the best way to do this? Any tips are highly appreciated as I feel a bit lost at the moment.

      1. I don't know wether I should get the the input splines via GetAndCheckHierarchyClone() or via GetVirtualLineObject() as in Triangulate.cpp. Where are the differences? I thought one has to use GetHierarchyClone to retrieve a scene object. And:

      2. Let's say I would want to rebuild the sweep nurbs functionality. Should I use SplineObjects to retrieve the resulting polys point positions from or better LineObjects. The c4d nurbs objects use LineObjects, I think, correct?

      3. What's the best method to check, wether my input objects are Splines or SplinePrimitives? instanceof()? BaseList()->GetInfo()?. Or is it safe enough to rely on GetRealSpline() returning NULL when called with a non spline object?

      And a last question:

      4. If I use LineObjects, I cannot use GetSplineTangent(), correct? Do I have to rebuild this function myself to work with LineObjects?

      Thanx you all very much for your help in advance,

      cheers mnu

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

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

        On 30/06/2004 at 21:20, xxxxxxxx wrote:

        1. It's probably easiest to use GetVirtualLineObject() since it's a convenience function for exactly what you're trying to do.
        2. Use LineObjects if you want the spline subdivision to determine the subdivision of your generated object. Use SplineObject if you want to determine the subdivision yourself and/or needs the tangent.
        3. GetRealSpline() should be safe. I use it myself in MSA. Just note that the matrix of the returned object cannot be used.
        4. Correct.

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

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

          On 01/07/2004 at 00:03, xxxxxxxx wrote:

          Thanx Mikael for clearing this up. cheers mnu

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