View Issue Details

IDProjectCategoryView StatusLast Update
0003262Part[FreeCAD] Bugpublic2017-12-09 12:34
Reporterfabien.cherblancAssigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSUbuntuOS Version16.04
Product Version[FreeCAD] 0.17 
Target VersionFixed in Version[FreeCAD] 0.17 
Summary0003262: normal vector returned by Face.normalAt(u,v) is not always a unit vector
DescriptionIn some case, the vector returned by method .normalAt(u,v) for faces is not a unit vector.
The solution would be to add a normalize operation vec::Normalize()
In TopoShapeFacePyImp.cpp, method TopoShapeFacePy::normalAt before returning the result.
Steps To ReproduceA python test file and the associated brep solid is provided.
TagsNo tags attached.

Activities

fabien.cherblanc

2017-11-16 11:12

reporter  

bloc.brep (6,344 bytes)
test.py (266 bytes)
# -*- coding: utf-8 -*-


import FreeCAD
import Part

bloc = Part.read("bloc.brep")

for face in bloc.Faces:
    print face.normalAt(0.5,0.5)
    print face.normalAt(0.,0.)
    print face.normalAt(1.,0.)
    print face.normalAt(0.,1.)
    print face.normalAt(1.,1.)
test.py (266 bytes)

Kunda1

2017-11-16 19:36

manager   ~0010419

Per the FC bugtracker guidelines (banner at the top of this page)... Please open a forum thread to discuss this with the community. then link back to this ticket

Kunda1

2017-12-09 12:05

manager   ~0010550

@fabien.cherblanc please post [b]Help > About FreeCAD > Copy to clipboard[/b] info

Kunda1

2017-12-09 12:08

manager   ~0010551

Forum thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=25794

wmayer

2017-12-09 12:34

administrator   ~0010556

https://github.com/FreeCAD/FreeCAD/commit/6a785f9afd6e3ed4ff1f53fced7d5dbb752802a0

Issue History

Date Modified Username Field Change
2017-11-16 11:12 fabien.cherblanc New Issue
2017-11-16 11:12 fabien.cherblanc File Added: bloc.brep
2017-11-16 11:12 fabien.cherblanc File Added: test.py
2017-11-16 19:36 Kunda1 Note Added: 0010419
2017-11-16 19:36 Kunda1 Status new => feedback
2017-12-09 12:05 Kunda1 Note Added: 0010550
2017-12-09 12:08 Kunda1 Note Added: 0010551
2017-12-09 12:34 wmayer Status feedback => closed
2017-12-09 12:34 wmayer Resolution open => fixed
2017-12-09 12:34 wmayer Fixed in Version => 0.17
2017-12-09 12:34 wmayer Note Added: 0010556