bugpyFormex - Bugs: bug #45586, plugins.curve.circle and closed...

 
 

bug #45586: plugins.curve.circle and closed Bezier Spline issue

Submitter:  francesco <francio>
Submitted:  Mon 20 Jul 2015 12:37:56 PM UTC
   
 
Category:  Plugins Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 20 Jul 2015 12:37:56 PM UTC, original submission:  

I am not sure whether this is a real bug or I am missing something.
circle() creates a closed BezierSpline, with the first and the last coincident points both included. When converting to Formex or Mesh this will create a degenerate element. At which level should this be corrected?


>>> from pyformex.plugins.curve import *
>>> c=circle().approx(nseg=3)
>>> c.coords
Coords([[ 1.        ,  0.        ,  0.        ],
       [-0.25952017,  0.96573782,  0.        ],
       [-0.86638832, -0.49937114,  0.        ],
       [ 1.        ,  0.        ,  0.        ]], dtype=float32)
>>> c.toFormex().coords
Coords([[[ 1.        ,  0.        ,  0.        ],
        [-0.25952017,  0.96573782,  0.        ]],

       [[-0.25952017,  0.96573782,  0.        ],
        [-0.86638832, -0.49937114,  0.        ]],

       [[-0.86638832, -0.49937114,  0.        ],
        [ 1.        ,  0.        ,  0.        ]],

       [[ 1.        ,  0.        ,  0.        ],
        [ 1.        ,  0.        ,  0.        ]]], dtype=float32)



francesco <francio>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by francio (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code