View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002723 | FreeCAD | Bug | public | 2016-10-04 18:10 | 2016-10-09 21:36 |
Reporter | fabien.cherblanc | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Linux | OS | Ubuntu 14.04 | OS Version | 14.04 |
Product Version | 0.17 | ||||
Fixed in Version | 0.17 | ||||
Summary | 0002723: Vertex ordering of Face | ||||
Description | While listing the vertices of a wire extracted from a face (see the python code in Steps To Reproduce), the vertices are not ordered correctly, 2 vertices are shifted. Using the method wire.fixWire() does not correct the problem, while it should do. Actually, the use of BRepTools_WireExplorer method (see the pythonOCC code in Additional Information) gives the correct list of vertices. Maybe, the method TopoShapeFacePy::getOuterWire(void) could be written using the BRepTools_WireExplorer method. | ||||
Steps To Reproduce | import FreeCAD as F import Part as FP fichier = "face.brep" face = FP.read(fichier).Faces[0] wire = face.OuterWire wire.fixWire() for v in wire.Vertexes: print v.X,v.Y | ||||
Additional Information | vertex_explorer = BRepTools_WireExplorer(wire) while vertex_explorer.More() == True: vertex = vertex_explorer.CurrentVertex() pt = BRep_Tool.Pnt(vertex); print pt.X(), pt.Y() | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||
|
|
|
There is now a new attribute OrderedVertexes of Part.Wire |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-10-04 18:10 | fabien.cherblanc | New Issue | |
2016-10-04 18:10 | fabien.cherblanc | File Added: face.brep | |
2016-10-09 21:33 | wmayer | Changeset attached | => FreeCAD Master master 58359dd0 |
2016-10-09 21:35 | wmayer | Note Added: 0007353 | |
2016-10-09 21:36 | wmayer | Status | new => closed |
2016-10-09 21:36 | wmayer | Resolution | open => fixed |
2016-10-09 21:36 | wmayer | Fixed in Version | => 0.17 |