View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update | 
|---|---|---|---|---|---|
| 0001272 | FreeCAD | Bug | public | 2013-10-12 16:29 | 2021-02-06 06:32 | 
| Reporter | pkoning | Assigned To | wandererfan | ||
| Priority | normal | Severity | minor | Reproducibility | always | 
| Status | closed | Resolution | fixed | ||
| Product Version | 0.13 | ||||
| Target Version | 0.20 | ||||
| Summary | 0001272: BezierCurve is not documented and not intuitive | ||||
| Description | I'm trying to use Part.BezierCurve.  There is no meaningful documentation, and the Python help isn't very helpful either.  I fed it a list of vectors, thinking those would be the nodes.  It was accepted (no error message) but it didn't have that effect. I then did some setPole and insertPole operations. Those work. But the indexing is wrong for Python, it needs to count from zero, not one. | ||||
| Tags | documentation | ||||
| FreeCAD Information | |||||
|  | OCC class Geom_BezierCurve expects poles to be numbered 1 to numberofpoles.  Making it Pythonic would mean a lot of little changes to C++ and macro code. Does this help at all? def makeBCurve(Points): '''makeBCurve(Points): Make a Part.BezierCurve Geo obj from these (FreeCAD.Vector) Points''' c = Part.BezierCurve() c.setPoles(Points) return(c) | 
|  | Added an entry to "Topological data scripting" | 
|  | It would be preferable to hide the incorrect design decisions of OCC from the Python programmer. But that little wrapper certainly helps. Thanks. | 
|  | > Those work. But the indexing is wrong for Python, it needs to count from zero, not one. Even worse than a bad design decision is to change the semantic of the API because this breaks all existing code out there. | 
|  | should be linked to: 0001355: Cubic Bezier Curve Tool For Draft Workbench http://www.freecadweb.org/tracker/view.php?id=1355 | 
|  | Documentation updated: http://www.freecadweb.org/wiki/index.php?title=Topological_data_scripting#Creating_a_Bezier_curve | 
| Date Modified | Username | Field | Change | 
|---|---|---|---|
| 2013-10-12 16:29 | pkoning | New Issue | |
| 2013-10-15 15:35 | wandererfan | Note Added: 0003748 | |
| 2013-10-15 15:54 | wandererfan | Note Added: 0003749 | |
| 2013-10-15 17:36 | pkoning | Note Added: 0003750 | |
| 2013-10-28 12:29 | wmayer | Note Added: 0003824 | |
| 2014-02-05 15:28 | wandererfan | Note Added: 0004152 | |
| 2014-02-05 16:26 | yorik | Relationship added | related to 0001355 | 
| 2014-09-22 13:28 | shoogen | Tag Attached: documentation | |
| 2014-11-13 00:54 | wandererfan | Note Added: 0005309 | |
| 2014-11-13 00:56 | wandererfan | Status | new => closed | 
| 2014-11-13 00:56 | wandererfan | Assigned To | => wandererfan | 
| 2014-11-13 00:56 | wandererfan | Resolution | open => fixed | 
| 2021-02-06 06:32 | abdullah | Target Version | => 0.20 | 
 FreeCAD
 FreeCAD