Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FreeCAD
FreeCAD
Commits
480f2803
Commit
480f2803
authored
Dec 19, 2012
by
Yorik van Havre
Browse files
0000890: bug in Draft Offset
parent
343effeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Mod/Draft/DraftGeomUtils.py
View file @
480f2803
...
...
@@ -770,7 +770,7 @@ def getNormal(shape):
"finds the normal of a shape, if possible"
n
=
Vector
(
0
,
0
,
1
)
if
(
shape
.
ShapeType
==
"Face"
)
and
hasattr
(
shape
,
"normalAt"
):
n
=
shape
.
normalAt
(
0.5
,
0.5
)
n
=
shape
.
copy
().
normalAt
(
0.5
,
0.5
)
elif
shape
.
ShapeType
==
"Edge"
:
if
isinstance
(
shape
.
Edges
[
0
].
Curve
,
Part
.
Circle
):
n
=
shape
.
Edges
[
0
].
Curve
.
Axis
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment