Skip to content

Commit

Permalink
move constant to util.py
Browse files Browse the repository at this point in the history
  • Loading branch information
true-real-michael committed Mar 23, 2024
1 parent d4062c9 commit e525b41
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion octreelib/ransac/cuda_ransac.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
from numba.cuda.random import create_xoroshiro128p_states

from octreelib.internal import PointCloud
from octreelib.ransac.initial_points_config import INITIAL_POINTS_NUMBER
from octreelib.ransac.util import (
generate_random_indices,
get_plane_from_points,
measure_distance,
INITIAL_POINTS_NUMBER,
)

__all__ = ["CudaRansac"]
Expand Down
9 changes: 0 additions & 9 deletions octreelib/ransac/initial_points_config.py

This file was deleted.

3 changes: 2 additions & 1 deletion octreelib/ransac/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
from numba import cuda
from numba.cuda.random import xoroshiro128p_uniform_float32

from octreelib.ransac.initial_points_config import INITIAL_POINTS_NUMBER
# This constant configures the number of initial points to be used in the RANSAC algorithm.
INITIAL_POINTS_NUMBER = 6


@cuda.jit(
Expand Down

0 comments on commit e525b41

Please sign in to comment.