def split_points(points, normalize_colors=False):
        """Split points into coordinates and colors."""
        coords = []
        colors = []

        if normalize_colors:
            color_normalize_factor = 255.0
        else:
            color_normalize_factor = 1

        for point in points:
            coords.append(point.coord)
            color_with_alpha = [
                point.color[0] / color_normalize_factor,
                point.color[1] / color_normalize_factor,
                point.color[2] / color_normalize_factor,
                1.0,
            ]
            colors.append(color_with_alpha)
        return coords, colors
Split points into coordinates and colors.
photogrammetry_importer/types/point.py