ANY3dView 0.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- any3dview/__init__.py +83 -0
- any3dview/adapters/__init__.py +1 -0
- any3dview/adapters/anygeometry/__init__.py +13 -0
- any3dview/adapters/anygeometry/layer.py +745 -0
- any3dview/adapters/anygeometry/policy.py +53 -0
- any3dview/adapters/anygeometry/tessellation.py +123 -0
- any3dview/arrays.py +209 -0
- any3dview/benchmarks.py +73 -0
- any3dview/capabilities.py +29 -0
- any3dview/clipping.py +107 -0
- any3dview/core.py +495 -0
- any3dview/errors.py +9 -0
- any3dview/factory.py +55 -0
- any3dview/gpu/__init__.py +11 -0
- any3dview/gpu/host.py +67 -0
- any3dview/gpu/renderer.py +969 -0
- any3dview/gpu/widget.py +660 -0
- any3dview/ownership.py +201 -0
- any3dview/retained.py +212 -0
- any3dview/scheduler.py +57 -0
- any3dview/selection.py +803 -0
- any3dview/shading.py +230 -0
- any3dview/shapes.py +1049 -0
- any3dview-0.4.0.dist-info/METADATA +183 -0
- any3dview-0.4.0.dist-info/RECORD +28 -0
- any3dview-0.4.0.dist-info/WHEEL +5 -0
- any3dview-0.4.0.dist-info/licenses/LICENSE +674 -0
- any3dview-0.4.0.dist-info/top_level.txt +1 -0
any3dview/__init__.py
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"""Backend-neutral geometry, camera, shading, clipping and selection core."""
|
|
2
|
+
|
|
3
|
+
from . import arrays, benchmarks, capabilities, clipping, core, ownership, retained, selection, shading, shapes
|
|
4
|
+
from .arrays import MeshArrays
|
|
5
|
+
from .capabilities import CORE_CAPABILITIES, ViewerCapabilities
|
|
6
|
+
from .clipping import SectionPlane
|
|
7
|
+
from .core import (
|
|
8
|
+
Camera3D,
|
|
9
|
+
DEFAULT_COLOR_STOPS,
|
|
10
|
+
Point3D,
|
|
11
|
+
get_color_stops,
|
|
12
|
+
reset_color_stops,
|
|
13
|
+
set_color_stops,
|
|
14
|
+
)
|
|
15
|
+
from .selection import (
|
|
16
|
+
PickBinding,
|
|
17
|
+
PickOwner,
|
|
18
|
+
ProjectedPrimitive,
|
|
19
|
+
ProjectedSelectionIndex,
|
|
20
|
+
SelectionConfig,
|
|
21
|
+
SelectionDepth,
|
|
22
|
+
SelectionEvent,
|
|
23
|
+
SelectionFilter,
|
|
24
|
+
SelectionGesture,
|
|
25
|
+
SelectionHit,
|
|
26
|
+
SelectionOperation,
|
|
27
|
+
SelectionTool,
|
|
28
|
+
)
|
|
29
|
+
from .ownership import ApplicationOwner, ModelOwner, PackedOwnerTable
|
|
30
|
+
from .retained import DirtyGenerations, MeshHandle, RetainedViewer
|
|
31
|
+
from .scheduler import ViewerScheduler
|
|
32
|
+
from .errors import GPUUnavailableError
|
|
33
|
+
from .factory import create_viewer
|
|
34
|
+
from .shading import Light
|
|
35
|
+
from .shapes import Mesh
|
|
36
|
+
|
|
37
|
+
__version__ = "0.4.0"
|
|
38
|
+
|
|
39
|
+
__all__ = [
|
|
40
|
+
"Camera3D",
|
|
41
|
+
"DEFAULT_COLOR_STOPS",
|
|
42
|
+
"Light",
|
|
43
|
+
"Mesh",
|
|
44
|
+
"MeshArrays",
|
|
45
|
+
"MeshHandle",
|
|
46
|
+
"DirtyGenerations",
|
|
47
|
+
"ViewerCapabilities",
|
|
48
|
+
"ViewerScheduler",
|
|
49
|
+
"CORE_CAPABILITIES",
|
|
50
|
+
"ApplicationOwner",
|
|
51
|
+
"ModelOwner",
|
|
52
|
+
"PackedOwnerTable",
|
|
53
|
+
"RetainedViewer",
|
|
54
|
+
"GPUUnavailableError",
|
|
55
|
+
"create_viewer",
|
|
56
|
+
"PickBinding",
|
|
57
|
+
"PickOwner",
|
|
58
|
+
"Point3D",
|
|
59
|
+
"ProjectedPrimitive",
|
|
60
|
+
"ProjectedSelectionIndex",
|
|
61
|
+
"SectionPlane",
|
|
62
|
+
"SelectionConfig",
|
|
63
|
+
"SelectionDepth",
|
|
64
|
+
"SelectionEvent",
|
|
65
|
+
"SelectionFilter",
|
|
66
|
+
"SelectionGesture",
|
|
67
|
+
"SelectionHit",
|
|
68
|
+
"SelectionOperation",
|
|
69
|
+
"SelectionTool",
|
|
70
|
+
"clipping",
|
|
71
|
+
"arrays",
|
|
72
|
+
"benchmarks",
|
|
73
|
+
"capabilities",
|
|
74
|
+
"core",
|
|
75
|
+
"get_color_stops",
|
|
76
|
+
"reset_color_stops",
|
|
77
|
+
"selection",
|
|
78
|
+
"ownership",
|
|
79
|
+
"retained",
|
|
80
|
+
"set_color_stops",
|
|
81
|
+
"shading",
|
|
82
|
+
"shapes",
|
|
83
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Optional adapters for external model packages."""
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""Optional ANYgeometry 0.2/schema-4 display adapter."""
|
|
2
|
+
|
|
3
|
+
from .layer import GeometryLayer
|
|
4
|
+
from .policy import DisplayMode, DisplayPolicy, TessellationPolicy
|
|
5
|
+
from .tessellation import UnsupportedDisplayGeometry
|
|
6
|
+
|
|
7
|
+
__all__ = [
|
|
8
|
+
"DisplayMode",
|
|
9
|
+
"DisplayPolicy",
|
|
10
|
+
"GeometryLayer",
|
|
11
|
+
"TessellationPolicy",
|
|
12
|
+
"UnsupportedDisplayGeometry",
|
|
13
|
+
]
|