Skip to content

no matter what i do PVGeo.filters.VoxelizePoints() always returns an empy grid #116

Description

@DoubleTroublePy

I tried again and again whit different datasets and different implementation but grid is always empty. I also tried do copy already working code but nothing changed.
I don't undestend if is a bug or I'm not understanding something.
Any help would be appreciated.

import pyvista as pv
import numpy as np
import PVGeo
import pandas as pd

#points = np.loadtxt("points3d.txt")
data = pd.read_csv('chunk.csv')
# Step 2: Create a PyVista point cloud
points = data[['x', 'y', 'z']].values

vtkpoints = PVGeo.points_to_poly_data(points)
#vtkpoints.plot(clim=[0, 1])
# Use with caution
voxelizer = PVGeo.filters.VoxelizePoints()
grid = voxelizer.apply(vtkpoints)

p = pv.Plotter()
p.add_mesh(grid)
p.show_grid()
p.show()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions