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
    • Recent
    • Tags
    • Users
    • Login

    Errors

    Scheduled Pinned Locked Moved SDK Help
    2 Posts 0 Posters 155 Views
    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 Offline
      Helper
      last edited by

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

      On 24/08/2009 at 10:16, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:    
      Platform:      
      Language(s) :

      ---------
      This is my code,

      > `

        
      \>    
      \>  Bool TrueSymmetry::Draw(PluginTag *tag, BaseObject *op, BaseDraw *bd, BaseDrawHelp *bh)  
      \>  {  
      \>         
      \>       LONG lngMySymPlane =tag->GetDataInstance()->GetLong (SYMMETRY_PLANE);  
      \>         
      \>       if (tag->GetDataInstance()->GetBool(SHOW_PLANE)) // If SHOW_PLANE is checked, then draw the polygon.  
      \>         
      \>         
      \>       {  
      \>    
      \>       switch (lngMySymPlane)  
      \>       {     case XY_PLANE:  
      \>    
      \>            Vector p[4] = { Vector(-200,-200,0),Vector(-200,200,0),Vector(200,200,0),Vector(200,-200,0)};  
      \>            Vector f[3] = { Vector(0,1,0),Vector(0,1,0),Vector(0,1,0)};  
      \>            bd->Polygon3D(p,f,TRUE);  
      \>            GePrint ("Showing the Symmetry Plane");  
      \>            return true;  
      \>    
      \>                 break;  
      \>    
      \>            case YZ_PLANE:  
      \>            Vector p[4] = { Vector(0,-200,-200),Vector(0,200,-200),Vector(0,200,200),Vector(0,-200,200)};  
      \>            Vector f[3] = { Vector(0,1,0),Vector(0,1,0),Vector(0,1,0)};  
      \>            bd->Polygon3D(p,f,TRUE);  
      \>            GePrint ("Showing the Symmetry Plane");  
      \>            return true;  
      \>    
      \>                 break;  
      \>    
      \>            case XZ_PLANE:  
      \>            Vector p[4] = { Vector(-200,0,-200),Vector(-200,0,200),Vector(200,0,200),Vector(200,0,-200)};  
      \>            Vector f[3] = { Vector(0,1,0),Vector(0,1,0),Vector(0,1,0)};  
      \>            bd->Polygon3D(p,f,TRUE);  
      \>            GePrint ("Showing the Symmetry Plane");  
      \>            return true;  
      \>                 break;  
      \>       }  
      \>    
      \>       }  
      \>       else //If SHOW_PLANE is unchecked, say goodbye to the polygon.  
      \>       {  
      \>            Vector p[4] = { Vector(0,0,0),Vector(0,0,0),Vector(0,0,0),Vector(0,0,0)};  
      \>            Vector f[3] = { Vector(0,0,0),Vector(0,0,0),Vector(0,0,0)};  
      \>            bd->Polygon3D(p,f,FALSE);  
      \>            GePrint ("Symmetry Plane Hidden");  
      \>       }  
      \>            return DRAW_HANDLES|DRAW_AXIS;  
      \>    
      \>    
      \>    
      \>    
      \>    
      \>  }  
      \>    
      \>  
      

      `

      And these are the errors I am getting.

      1>truesymmetry.cpp
      1>c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(87) : error C2360: initialization of 'f' is skipped by 'case' label
      1>        c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(80) : see declaration of 'f'
      1>c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(87) : error C2360: initialization of 'p' is skipped by 'case' label
      1>        c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(79) : see declaration of 'p'
      1>c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(88) : error C2374: 'p' : redefinition; multiple initialization
      1>        c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(79) : see declaration of 'p'
      1>c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(89) : error C2374: 'f' : redefinition; multiple initialization
      1>        c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(80) : see declaration of 'f'
      1>c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(96) : error C2360: initialization of 'f' is skipped by 'case' label
      1>        c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(89) : see declaration of 'f'
      1>c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(96) : error C2360: initialization of 'p' is skipped by 'case' label
      1>        c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(88) : see declaration of 'p'
      1>c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(96) : error C2360: initialization of 'f' is skipped by 'case' label
      1>        c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(80) : see declaration of 'f'
      1>c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(96) : error C2360: initialization of 'p' is skipped by 'case' label
      1>        c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(79) : see declaration of 'p'
      1>c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(97) : error C2374: 'p' : redefinition; multiple initialization
      1>        c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(79) : see declaration of 'p'
      1>c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(98) : error C2374: 'f' : redefinition; multiple initialization
      1>        c:\users he fosters\desktop\cinema4dr11010\plugins ruesymmetry\source ag ruesymmetry.cpp(80) : see declaration of 'f'

      Can anyone tell me what I am doing wrong.

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

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

        On 24/08/2009 at 10:30, xxxxxxxx wrote:

        nevermind. solved this one too.. added my if statement to each case

        thanks,

        ~Shawn

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