Skip to content

Incorrect normal for a wire extracted from a face #2070

Description

@lorenzncode
from cadquery.func import *

# incorrect normal for a wire extracted from face: 
w1 = plane(2, 2).wire().move(ry=90)
print(w1.normal())  # result: (0, 0, 1); expected: (1, 0, 0)


# compare with face (OK)
f = plane(2, 2).move(ry=90)
print(f.normalAt())  # result: (1, 0, 0); expected: (1, 0, 0)


# compare with wire not extracted from a face (OK)
w2 = rect(2, 2).move(ry=90)
print(w2.normal())  # result: (1, 0, 0); expected: (1, 0, 0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions