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

    Connect to Splines

    SDK Help
    0
    1
    143
    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 26/01/2013 at 04:49, xxxxxxxx wrote:

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

      ---------
      Hey,

      I want to connect to splines to one:

      _<_t_>_

      LONG splinePointCount= spline->GetPointCount();  
      LONG splineSegmentCount= spline->GetSegmentCount();  
        
      spline->ResizeObject(splinePointCount\*2, splineSegmentCount\*2);  
        
        
      Vector\* points = spline->GetPointW();  
      const Vector\* newPoints = spline2->GetPointR();  
        
      for (int i = splinePointCount-1, k = 0; k < splinePointCount; k++, i++)  
      {  
        points _= newPoints[k];  
       }  
        
      Segment \*segments = spline->GetSegmentW();  
      const Segment \*newSegments = spline2->GetSegmentR();  
        
      for (int i = splineSegmentCount-1, k = 0; k < splineSegmentCount; k++, i++)  
      {  
        segments _= newSegments[k];  
       }  
      

      <_<_t_>_
      The result is not complete false:

      Anyone an idea?

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