View Issue Details

IDProjectCategoryView StatusLast Update
0003847FreeCADBugpublic2019-02-18 18:10
Reporterlvch Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Version0.17 
Summary0003847: 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 : https://mail.spbu.ru/Session/1042632-UdvtAks2OQutsPakxFwf/WebFile/1.png
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: https://mail.spbu.ru/Session/1042632-UdvtAks2OQutsPakxFwf/WebFile/2.png
TagsApp::Part
FreeCAD Information

Relationships

duplicate of 0003846 closedwmayer unexpected result in building RuledSurface 

Activities

lvch

2019-02-18 14:32

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)   

Issue History

Date Modified Username Field Change
2019-02-18 14:32 lvch New Issue
2019-02-18 14:32 lvch Tag Attached: App::Part
2019-02-18 14:32 lvch File Added: err.FCMacro
2019-02-18 18:09 wmayer Relationship added duplicate of 0003846
2019-02-18 18:10 wmayer Status new => closed
2019-02-18 18:10 wmayer Resolution open => duplicate