Skip to content

WIP: Optimize extract project#31

Open
danlipsa wants to merge 5 commits intoKitware:masterfrom
danlipsa:optimize_extract_project
Open

WIP: Optimize extract project#31
danlipsa wants to merge 5 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?

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