liblaf.melon.proximity
¤
Classes:
-
NearestAlgorithm– -
NearestAlgorithmPrepared– -
NearestPoint– -
NearestPointOnSurface– -
NearestPointOnSurfacePrepared– -
NearestPointOnSurfaceResult– -
NearestPointPrepared– -
NearestPointResult– -
NearestResult–
Functions:
-
nearest– -
nearest_point_on_surface–
NearestAlgorithm
¤
Bases: ABC
flowchart TD
liblaf.melon.proximity.NearestAlgorithm[NearestAlgorithm]
click liblaf.melon.proximity.NearestAlgorithm href "" "liblaf.melon.proximity.NearestAlgorithm"
Methods:
-
prepare–
NearestAlgorithmPrepared
¤
Bases: ABC
flowchart TD
liblaf.melon.proximity.NearestAlgorithmPrepared[NearestAlgorithmPrepared]
click liblaf.melon.proximity.NearestAlgorithmPrepared href "" "liblaf.melon.proximity.NearestAlgorithmPrepared"
Methods:
-
query–
NearestPoint
¤
Bases: NearestAlgorithm
flowchart TD
liblaf.melon.proximity.NearestPoint[NearestPoint]
liblaf.melon.proximity._abc.NearestAlgorithm[NearestAlgorithm]
liblaf.melon.proximity._abc.NearestAlgorithm --> liblaf.melon.proximity.NearestPoint
click liblaf.melon.proximity.NearestPoint href "" "liblaf.melon.proximity.NearestPoint"
click liblaf.melon.proximity._abc.NearestAlgorithm href "" "liblaf.melon.proximity._abc.NearestAlgorithm"
Parameters:
-
(distance_threshold¤float, default:0.1) – -
(ignore_orientation¤bool, default:True) – -
(max_k¤int, default:32) – -
(normal_threshold¤float, default:-inf) – -
(workers¤int, default:-1) –
Methods:
-
prepare–
Attributes:
-
distance_threshold(float) – -
ignore_orientation(bool) – -
max_k(int) – -
normal_threshold(float) – -
workers(int) –
normal_threshold
class-attribute
instance-attribute
¤
prepare
¤
prepare(source: Any) -> NearestPointPrepared
Source code in src/liblaf/melon/proximity/_nearest_point.py
110 111 112 113 114 115 116 117 118 119 120 121 122 123 | |
NearestPointOnSurface
¤
Bases: NearestAlgorithm
flowchart TD
liblaf.melon.proximity.NearestPointOnSurface[NearestPointOnSurface]
liblaf.melon.proximity._abc.NearestAlgorithm[NearestAlgorithm]
liblaf.melon.proximity._abc.NearestAlgorithm --> liblaf.melon.proximity.NearestPointOnSurface
click liblaf.melon.proximity.NearestPointOnSurface href "" "liblaf.melon.proximity.NearestPointOnSurface"
click liblaf.melon.proximity._abc.NearestAlgorithm href "" "liblaf.melon.proximity._abc.NearestAlgorithm"
Parameters:
-
(distance_threshold¤float, default:0.1) – -
(ignore_orientation¤bool, default:False) – -
(normal_threshold¤float | None, default:0.8) –
Methods:
-
prepare–
Attributes:
normal_threshold
class-attribute
instance-attribute
¤
prepare
¤
prepare(source: Any) -> NearestPointOnSurfacePrepared
Source code in src/liblaf/melon/proximity/_nearest_point_on_surface.py
113 114 115 116 117 118 119 120 121 | |
NearestPointOnSurfacePrepared
¤
Bases: NearestAlgorithmPrepared
flowchart TD
liblaf.melon.proximity.NearestPointOnSurfacePrepared[NearestPointOnSurfacePrepared]
liblaf.melon.proximity._abc.NearestAlgorithmPrepared[NearestAlgorithmPrepared]
liblaf.melon.proximity._abc.NearestAlgorithmPrepared --> liblaf.melon.proximity.NearestPointOnSurfacePrepared
click liblaf.melon.proximity.NearestPointOnSurfacePrepared href "" "liblaf.melon.proximity.NearestPointOnSurfacePrepared"
click liblaf.melon.proximity._abc.NearestAlgorithmPrepared href "" "liblaf.melon.proximity._abc.NearestAlgorithmPrepared"
Parameters:
-
(source_pv¤PolyData) – -
(source¤Mesh) – -
(distance_threshold¤float) – -
(ignore_orientation¤bool) – -
(normal_threshold¤float | None) –
Methods:
-
query–
Attributes:
-
distance_threshold(float) – -
face_normals(Float[ndarray, 'M 3']) – -
ignore_orientation(bool) – -
length(float) – -
normal_threshold(float | None) – -
source(Mesh) – -
source_pv(PolyData) –
query
¤
query(query: Any) -> NearestPointOnSurfaceResult
Source code in src/liblaf/melon/proximity/_nearest_point_on_surface.py
37 38 39 40 41 | |
NearestPointOnSurfaceResult
¤
Bases: NearestResult
flowchart TD
liblaf.melon.proximity.NearestPointOnSurfaceResult[NearestPointOnSurfaceResult]
liblaf.melon.proximity._abc.NearestResult[NearestResult]
liblaf.melon.proximity._abc.NearestResult --> liblaf.melon.proximity.NearestPointOnSurfaceResult
click liblaf.melon.proximity.NearestPointOnSurfaceResult href "" "liblaf.melon.proximity.NearestPointOnSurfaceResult"
click liblaf.melon.proximity._abc.NearestResult href "" "liblaf.melon.proximity._abc.NearestResult"
Parameters:
-
(distance¤Float[ndarray, Q]) – -
(missing¤Bool[ndarray, Q]) – -
(nearest¤Float[ndarray, 'Q 3']) – -
(barycentric¤Float[ndarray, 'N 3']) – -
(triangle_id¤Integer[ndarray, N]) –
Attributes:
-
barycentric(Float[ndarray, 'N 3']) – -
distance(Float[ndarray, ' Q']) – -
missing(Bool[ndarray, ' Q']) – -
nearest(Float[ndarray, 'Q 3']) – -
triangle_id(Integer[ndarray, ' N']) –
NearestPointPrepared
¤
Bases: NearestAlgorithmPrepared
flowchart TD
liblaf.melon.proximity.NearestPointPrepared[NearestPointPrepared]
liblaf.melon.proximity._abc.NearestAlgorithmPrepared[NearestAlgorithmPrepared]
liblaf.melon.proximity._abc.NearestAlgorithmPrepared --> liblaf.melon.proximity.NearestPointPrepared
click liblaf.melon.proximity.NearestPointPrepared href "" "liblaf.melon.proximity.NearestPointPrepared"
click liblaf.melon.proximity._abc.NearestAlgorithmPrepared href "" "liblaf.melon.proximity._abc.NearestAlgorithmPrepared"
Parameters:
-
(source¤PointSet) – -
(tree¤KDTree) – -
(distance_threshold¤float) – -
(ignore_orientation¤bool) – -
(max_k¤int) – -
(normal_threshold¤float) – -
(workers¤int) –
Methods:
-
query–
Attributes:
-
distance_threshold(float) – -
ignore_orientation(bool) – -
max_k(int) – -
normal_threshold(float) – -
source(PointSet) – -
tree(KDTree) – -
workers(int) –
query
¤
query(query: Any) -> NearestPointResult
Source code in src/liblaf/melon/proximity/_nearest_point.py
30 31 32 33 34 | |
NearestPointResult
¤
Bases: NearestResult
flowchart TD
liblaf.melon.proximity.NearestPointResult[NearestPointResult]
liblaf.melon.proximity._abc.NearestResult[NearestResult]
liblaf.melon.proximity._abc.NearestResult --> liblaf.melon.proximity.NearestPointResult
click liblaf.melon.proximity.NearestPointResult href "" "liblaf.melon.proximity.NearestPointResult"
click liblaf.melon.proximity._abc.NearestResult href "" "liblaf.melon.proximity._abc.NearestResult"
Parameters:
-
(distance¤Float[ndarray, Q]) – -
(missing¤Bool[ndarray, Q]) – -
(nearest¤Float[ndarray, 'Q 3']) – -
(vertex_id¤Integer[ndarray, N]) –
Attributes:
NearestResult
¤
nearest
¤
Source code in src/liblaf/melon/proximity/_nearest.py
21 22 23 24 25 26 27 | |
nearest_point_on_surface
¤
nearest_point_on_surface(
source: Any,
target: Any,
*,
distance_threshold: float = 0.1,
ignore_orientation: bool = True,
normal_threshold: float | None = 0.8,
) -> NearestPointOnSurfaceResult
Source code in src/liblaf/melon/proximity/_nearest_point_on_surface.py
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 | |