Commit 711c0c2e authored by Baptiste Durand's avatar Baptiste Durand

Orientation correction for angle bisector

+ import correction
parent d6b07947
...@@ -55,7 +55,7 @@ def set_gmsh_option(option, val): ...@@ -55,7 +55,7 @@ def set_gmsh_option(option, val):
logger.info(f"Gmsh option {option} set to {val} (previously : {preval}).") logger.info(f"Gmsh option {option} set to {val} (previously : {preval}).")
from .curves import AbstractCurve, Arc, Line, bndry_logger from .curves import Curve, AbstractCurve, Arc, Line, bndry_logger
from .physical import PhysicalGroup from .physical import PhysicalGroup
from .point import Point from .point import Point
from .surfaces import ( from .surfaces import (
......
...@@ -73,7 +73,7 @@ def bisector(u, v): ...@@ -73,7 +73,7 @@ def bisector(u, v):
""" """
u_, v_ = unit_vect(u), unit_vect(v) u_, v_ = unit_vect(u), unit_vect(v)
bis = np.cross(u_ - v_, E3) bis = np.cross(v_ - u_, E3)
bis = unit_vect(bis) bis = unit_vect(bis)
return bis return bis
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment