coordinate-system 2.5.0__cp313-cp313-win_amd64.whl → 2.5.1__cp313-cp313-win_amd64.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.
@@ -4,26 +4,21 @@ from .coordinate_system import vec3, vec2
4
4
  from .coordinate_system import quat
5
5
  from .coordinate_system import coord3
6
6
 
7
- # Differential geometry module (v2.2.0+)
7
+ # Differential geometry module (v3.0.0+)
8
8
  from .differential_geometry import (
9
9
  # Classes
10
10
  Surface,
11
11
  Sphere,
12
12
  Torus,
13
13
  MetricTensor,
14
- ConnectionOperator,
14
+ IntrinsicGradientOperator,
15
+ IntrinsicGradientCurvatureCalculator,
15
16
 
16
17
  # Main functions
17
- compute_metric,
18
- compute_connection,
19
- compute_curvature_tensor,
20
- compute_gaussian_curvature,
21
-
22
- # Aliases
23
- compute_frame_derivative,
24
18
  compute_intrinsic_gradient,
25
- compute_geometric_gradient,
26
- compute_metric_tensor,
19
+ compute_gaussian_curvature,
20
+ compute_curvature_tensor,
21
+ compute_all_curvatures,
27
22
  )
28
23
 
29
24
  # High-precision curvature computation module (v2.3.0+)
@@ -57,20 +52,21 @@ from .intrinsic_gradient_curvature import (
57
52
  )
58
53
 
59
54
  __all__ = [
55
+ # Constants
56
+ 'ZERO3','UNITX','UNITY','UNITZ','ONE3','ONE4','ONEC',
57
+
60
58
  # Core types
61
59
  'vec3', 'vec2', 'quat', 'coord3', 'lerp',
62
60
 
63
- # Differential geometry classes (v2.2.0+)
61
+ # Differential geometry classes (v3.0.0+)
64
62
  'Surface', 'Sphere', 'Torus',
65
- 'MetricTensor', 'ConnectionOperator',
66
-
67
- # Differential geometry functions (v2.2.0+)
68
- 'compute_metric', 'compute_connection',
69
- 'compute_curvature_tensor', 'compute_gaussian_curvature',
63
+ 'MetricTensor', 'IntrinsicGradientOperator', 'IntrinsicGradientCurvatureCalculator',
70
64
 
71
- # Aliases
72
- 'compute_frame_derivative', 'compute_intrinsic_gradient',
73
- 'compute_geometric_gradient', 'compute_metric_tensor',
65
+ # Differential geometry functions (v3.0.0+)
66
+ 'compute_intrinsic_gradient',
67
+ 'compute_gaussian_curvature',
68
+ 'compute_curvature_tensor',
69
+ 'compute_all_curvatures',
74
70
 
75
71
  # High-precision curvature module - Classical method (v2.3.0+)
76
72
  'CurvatureCalculator',
@@ -33,9 +33,10 @@ from .differential_geometry import Surface
33
33
  from .coordinate_system import coord3, vec3
34
34
  from .differential_geometry import (
35
35
  MetricTensor,
36
- ConnectionOperator,
36
+ IntrinsicGradientOperator,
37
+ IntrinsicGradientCurvatureCalculator,
37
38
  compute_curvature_tensor as compute_curvature_tensor_lie,
38
- compute_metric
39
+ compute_all_curvatures as compute_all_curvatures_intrinsic
39
40
  )
40
41
 
41
42
 
@@ -594,7 +595,7 @@ class LieGroupCurvatureCalculator:
594
595
  )
595
596
 
596
597
  # Compute metric tensor
597
- g = compute_metric(self.surface, u, v)
598
+ g = MetricTensor.from_surface(self.surface, u, v)
598
599
 
599
600
  # Extract Gaussian curvature using antisymmetric part
600
601
  # K = R_{12}^{antisym} / det(g) = (R_01 - R_10)/2 / det(g)
@@ -650,14 +651,12 @@ class LieGroupCurvatureCalculator:
650
651
  self.surface.h = self.h
651
652
 
652
653
  try:
653
- # Compute connection operators
654
- conn = ConnectionOperator(
654
+ # Compute intrinsic gradient operators
655
+ intrinsic_op = IntrinsicGradientOperator(
655
656
  self.surface,
656
- self.scale_factor,
657
- self.use_metric_correction,
658
657
  self.h
659
658
  )
660
- G_u, G_v = conn.compute_both(u, v)
659
+ G_u, G_v = intrinsic_op.compute_both(u, v)
661
660
 
662
661
  # Compute curvature tensor
663
662
  R_uv = compute_curvature_tensor_lie(
@@ -668,7 +667,7 @@ class LieGroupCurvatureCalculator:
668
667
  )
669
668
 
670
669
  # Compute metric
671
- g = compute_metric(self.surface, u, v)
670
+ g = MetricTensor.from_surface(self.surface, u, v)
672
671
 
673
672
  # Extract Gaussian curvature using antisymmetric part
674
673
  # K = (R_01 - R_10)/2 / det(g)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: coordinate_system
3
- Version: 2.5.0
3
+ Version: 2.5.1
4
4
  Summary: High-performance 3D coordinate system library with Intrinsic Gradient Operator method for curvature computation, achieving machine-precision accuracy
5
5
  Home-page: https://github.com/panguojun/Coordinate-System
6
6
  Author: PanGuoJun
@@ -1,11 +1,11 @@
1
- coordinate_system/__init__.py,sha256=KuKtCyrBIQuv2iJeosXxLXcDCc20mkhoA6K1Ho9RwMQ,8000
1
+ coordinate_system/__init__.py,sha256=CXmYl15vYthXaP4DF6fiLwH0oiBvit-zf9n3rE7DijI,7939
2
2
  coordinate_system/coordinate_system.cp313-win_amd64.pyd,sha256=Rp2rgehlW-TUG3xwj9qjOWeOGNEqrPMo5U4rWu2WWns,494080
3
- coordinate_system/curvature.py,sha256=DWdLaDSrdcApN3ve_FY2R40h83H3xydOi9heMIMBvJw,26956
3
+ coordinate_system/curvature.py,sha256=m4damAauBosQHr50bJxazv8JzdCfaCAqnEWC6P9NkCk,27022
4
4
  coordinate_system/differential_geometry.py,sha256=P3GhfoZ8WHLSE3AmpzdlaEII7E9QsZsERiznXaBaKRc,17036
5
5
  coordinate_system/intrinsic_gradient_curvature.py,sha256=CVWMP5JgsKerIViii2vsFy-d_PCtB02ZIJ9fi8qmCVA,17680
6
6
  coordinate_system/two_stage_curvature.py,sha256=e4fYAhiUc8NwtBi5hz5se4if4i8zZzG8smNlWNwuJpw,7219
7
- coordinate_system-2.5.0.dist-info/LICENSE,sha256=tDnRkJxBYPzWdfh2gArRqrUPJxQZRZHJVs68qqBHIq4,1083
8
- coordinate_system-2.5.0.dist-info/METADATA,sha256=5xrBsPo6AqNG54t36EvxGktUhs1AAp7JYSppV_YX1aQ,19428
9
- coordinate_system-2.5.0.dist-info/WHEEL,sha256=4-iQBlRoDdX1wfPofc7KLWa5Cys4eZSgXs6GVU8fKlQ,101
10
- coordinate_system-2.5.0.dist-info/top_level.txt,sha256=R6LguuPPZ5esrIsDTqPGi9UxCvZPIXwn7KRKX87c79M,18
11
- coordinate_system-2.5.0.dist-info/RECORD,,
7
+ coordinate_system-2.5.1.dist-info/LICENSE,sha256=tDnRkJxBYPzWdfh2gArRqrUPJxQZRZHJVs68qqBHIq4,1083
8
+ coordinate_system-2.5.1.dist-info/METADATA,sha256=wzxf4SxNT3WXvArk1zpTeu10Wh9rXqw8pxDZMFq1xMU,19428
9
+ coordinate_system-2.5.1.dist-info/WHEEL,sha256=4-iQBlRoDdX1wfPofc7KLWa5Cys4eZSgXs6GVU8fKlQ,101
10
+ coordinate_system-2.5.1.dist-info/top_level.txt,sha256=R6LguuPPZ5esrIsDTqPGi9UxCvZPIXwn7KRKX87c79M,18
11
+ coordinate_system-2.5.1.dist-info/RECORD,,