2022-05-20 15:20:06 -04:00
|
|
|
from importlib.metadata import version, PackageNotFoundError
|
|
|
|
|
|
|
|
try:
|
|
|
|
version__ = version("cadquery")
|
|
|
|
except PackageNotFoundError:
|
|
|
|
# package is not installed
|
|
|
|
pass
|
|
|
|
|
2017-09-17 00:57:12 +02:00
|
|
|
# these items point to the OCC implementation
|
2020-06-16 19:16:57 +02:00
|
|
|
from .occ_impl.geom import Plane, BoundBox, Vector, Matrix, Location
|
2020-01-20 20:52:12 +01:00
|
|
|
from .occ_impl.shapes import (
|
|
|
|
Shape,
|
|
|
|
Vertex,
|
|
|
|
Edge,
|
|
|
|
Face,
|
|
|
|
Wire,
|
|
|
|
Solid,
|
|
|
|
Shell,
|
|
|
|
Compound,
|
|
|
|
sortWiresByBuildOrder,
|
|
|
|
)
|
2017-05-14 12:35:56 +02:00
|
|
|
from .occ_impl import exporters
|
|
|
|
from .occ_impl import importers
|
2013-04-14 18:39:47 -04:00
|
|
|
|
2017-09-17 00:57:12 +02:00
|
|
|
# these items are the common implementation
|
2013-04-16 22:29:06 -04:00
|
|
|
|
2017-09-17 00:57:12 +02:00
|
|
|
# the order of these matter
|
2020-01-20 20:52:12 +01:00
|
|
|
from .selectors import (
|
|
|
|
NearestToPointSelector,
|
|
|
|
ParallelDirSelector,
|
|
|
|
DirectionSelector,
|
|
|
|
PerpendicularDirSelector,
|
|
|
|
TypeSelector,
|
|
|
|
DirectionMinMaxSelector,
|
|
|
|
StringSyntaxSelector,
|
|
|
|
Selector,
|
|
|
|
)
|
2021-11-11 10:58:09 +01:00
|
|
|
from .sketch import Sketch
|
2020-07-28 20:33:52 +02:00
|
|
|
from .cq import CQ, Workplane
|
2020-09-07 15:36:28 +02:00
|
|
|
from .assembly import Assembly, Color, Constraint
|
2020-07-28 20:33:52 +02:00
|
|
|
from . import selectors
|
2019-05-20 21:27:28 +02:00
|
|
|
from . import plugins
|
2013-04-16 22:29:06 -04:00
|
|
|
|
2013-04-15 21:46:52 -04:00
|
|
|
|
2013-04-14 18:39:47 -04:00
|
|
|
__all__ = [
|
2020-01-20 20:52:12 +01:00
|
|
|
"CQ",
|
|
|
|
"Workplane",
|
2020-08-31 15:31:21 +02:00
|
|
|
"Assembly",
|
2020-09-06 17:45:32 +02:00
|
|
|
"Color",
|
2020-09-07 15:36:28 +02:00
|
|
|
"Constraint",
|
2020-01-20 20:52:12 +01:00
|
|
|
"plugins",
|
|
|
|
"selectors",
|
|
|
|
"Plane",
|
|
|
|
"BoundBox",
|
|
|
|
"Matrix",
|
|
|
|
"Vector",
|
2020-06-16 19:16:57 +02:00
|
|
|
"Location",
|
2020-01-20 20:52:12 +01:00
|
|
|
"sortWiresByBuildOrder",
|
|
|
|
"Shape",
|
|
|
|
"Vertex",
|
|
|
|
"Edge",
|
|
|
|
"Wire",
|
|
|
|
"Face",
|
|
|
|
"Solid",
|
|
|
|
"Shell",
|
|
|
|
"Compound",
|
|
|
|
"exporters",
|
|
|
|
"importers",
|
|
|
|
"NearestToPointSelector",
|
|
|
|
"ParallelDirSelector",
|
|
|
|
"DirectionSelector",
|
|
|
|
"PerpendicularDirSelector",
|
|
|
|
"TypeSelector",
|
|
|
|
"DirectionMinMaxSelector",
|
|
|
|
"StringSyntaxSelector",
|
|
|
|
"Selector",
|
|
|
|
"plugins",
|
2021-11-11 10:58:09 +01:00
|
|
|
"Sketch",
|
2013-04-14 18:39:47 -04:00
|
|
|
]
|
|
|
|
|
2021-02-03 09:55:09 -05:00
|
|
|
__version__ = "2.1"
|