View Issue Details

IDProjectCategoryView StatusLast Update
0003846FreeCADBugpublic2019-02-19 14:56
Reporterlvch Assigned Towmayer  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version0.17 
Fixed in Version0.18 
Summary0003846: unexpected result in building RuledSurface
DescriptionMinor x-coordinate changes
the first point of two closed wires lead to an unexpected result
in building RuledSurface

see more

https://forum.freecadweb.org/viewtopic.php?f=22&t=34211#p286871
Steps To Reproducerun the script (file #1)
result : file 0000002
Additional InformationMany small changes in x0 and x1 lead to the same result. For example,
increase or decrease x0 several times (not more than 2,4,6),
simultaneous change of the x0 and x1 signs.

Other minor changes give the right result.
For example, changing the sign of only x0, x0 = 0 or x1 = 0,
x0 = .1e-14, x0 = 1e-16, x0 = 0.0001

result: file 0000003
TagsApp::Part
FreeCAD Information

Relationships

has duplicate 0003847 closed unexpected result in building RuledSurface 

Activities

lvch

2019-02-18 14:27

reporter  

err.FCMacro (688 bytes)   
# -*- coding: utf-8 -*-
import FreeCAD
import Part
import Draft

x0 = 1.7256386715258160e-15
x1 = 1.4287545990052454e-15
# x0 *= 4*x0
# x1 *= 4*x1
x1=-x1

verts_0 =[(x0, -8., 0.), ( 0., -8., 2.), (-3., -8., 0.) ]
verts_1 =[(x1, -3., 0.), ( 0., -3., 2.), (-3., -3., 0.) ]


curva_0 = Part.makePolygon(map(FreeCAD.Vector,verts_0))
D0=Draft.makeWire(curva_0, closed=True,face=False)

curva_1 = Part.makePolygon(map(FreeCAD.Vector,verts_1))
D1=Draft.makeWire(curva_1, closed=True,face=False)

App.ActiveDocument.addObject("Part::RuledSurface","srf")
FreeCAD.ActiveDocument.ActiveObject.Curve1=D0
FreeCAD.ActiveDocument.ActiveObject.Curve2=D1

App.getDocument("_________________").recompute()
err.FCMacro (688 bytes)   
1.png (11,283 bytes)   
1.png (11,283 bytes)   

wmayer

2019-02-19 14:56

administrator   ~0012695

https://github.com/FreeCAD/FreeCAD/commit/997d1d7d515f0551eb44d06da27df98288576ce2

Issue History

Date Modified Username Field Change
2019-02-18 14:27 lvch New Issue
2019-02-18 14:27 lvch Tag Attached: App::Part
2019-02-18 14:27 lvch File Added: err.FCMacro
2019-02-18 14:27 lvch File Added: 1.png
2019-02-18 18:09 wmayer Relationship added has duplicate 0003847
2019-02-19 14:56 wmayer Assigned To => wmayer
2019-02-19 14:56 wmayer Status new => closed
2019-02-19 14:56 wmayer Resolution open => fixed
2019-02-19 14:56 wmayer Fixed in Version => 0.18
2019-02-19 14:56 wmayer Note Added: 0012695