Skip to content

Commit

Permalink
add format_svg_path top level import (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyer authored Jan 13, 2025
1 parent 13e35fc commit d0d1762
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions ocpsvg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
face_to_svg_path,
faces_from_svg_path,
format_svg,
format_svg_path,
import_svg_document,
wire_to_svg_path,
wires_from_svg_path,
Expand Down
22 changes: 12 additions & 10 deletions tests/test_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@
from OCP.TopoDS import TopoDS, TopoDS_Edge, TopoDS_Face, TopoDS_Shape, TopoDS_Wire
from pytest import approx, raises

from ocpsvg import (
curve_to_svg_path,
edge_to_svg_path,
edges_from_svg_path,
face_to_svg_path,
faces_from_svg_path,
format_svg,
format_svg_path,
import_svg_document,
wire_to_svg_path,
wires_from_svg_path,
)
from ocpsvg.ocp import (
bezier_curve,
bounding_box,
Expand All @@ -35,19 +47,9 @@
SvgPathCommand,
_SegmentInPath, # type: ignore private usage
bezier_to_svg_path,
curve_to_svg_path,
edge_to_svg_path,
edges_from_svg_path,
face_to_svg_path,
faces_from_svg_path,
find_shapes_svg_in_document,
format_svg,
format_svg_path,
import_svg_document,
polyline_to_svg_path,
svg_element_to_path,
wire_to_svg_path,
wires_from_svg_path,
)

from .ocp import face_area, face_normal, is_valid, wire_via_BRepBuilderAPI
Expand Down

0 comments on commit d0d1762

Please sign in to comment.