convert
point_normal_to_plane(point_normal)
Convert point-normal representation to plane representation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
point_normal
|
Tensor
|
Tensor of shape [N, 6] where N is the number of points. The first three columns are the point coordinates (x, y, z) and the last three columns are the normal vector components (nx, ny, nz). |
required |
Returns:
| Type | Description |
|---|---|
Tensor
|
Tensor of shape [N, 4] representing the plane coefficients (a, b, c, d) in the form ax + by + cz + d = 0. |
Source code in src/torch_structure/geometry/convert.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | |