Skip to content

Optimize extract project#31

Closed
danlipsa wants to merge 9 commits intoKitware:masterfrom
danlipsa:optimize_extract_project
Closed

Optimize extract project#31
danlipsa wants to merge 9 commits intoKitware:masterfrom
danlipsa:optimize_extract_project

Conversation

@danlipsa
Copy link
Copy Markdown
Collaborator

No description provided.

Instead of using LongitudeRange,LatitudeRange properties
which require knowing the range of the input we use
TrimLongitude,TrimLatitude which specify how much to trim
at each end of the input interval

Hidden cells are used to restrict the mesh shown instead of
changing the mesh. This allows us to reuse the VBO when rendering.
@danlipsa
Copy link
Copy Markdown
Collaborator Author

@jourdain Please review. This is not yet integrated into QuickView. I'll do that starting next Mon.

_coords = numpy_support.numpy_to_vtk(outPoints, deep=True)
outData.GetPoints().SetData(_coords)
if self.cached_points:
self.cached_points.Unregister(self)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than Unregister, should you just set self.cached_points = None?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I need to do this at all? If the python object is deleted, the c++ object should be unregistered as well, isn't it?

@danlipsa danlipsa changed the title WIP: Optimize extract project Optimize extract project Mar 29, 2026
@jourdain
Copy link
Copy Markdown
Collaborator

Where are we on that one? I'm about the merge my changes, and I was wondering if I should try to do that after your changes?

@danlipsa
Copy link
Copy Markdown
Collaborator Author

danlipsa commented Mar 31, 2026

Those will work, but I'll need to add vtkPolyData::RemoveGhostCells(), possible in a different PR. For now we won't see the changes in the lat/lon range unless we add that function. Up to you if you merge or now.

@jourdain
Copy link
Copy Markdown
Collaborator

closing as it is included in #33

@jourdain jourdain closed this Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants