Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Discussion options

You must be logged in to vote

Isn't it just a matter of using the max_length parameter of the strip method, that is fixed to 1000 by default? and then re-organizing the data, the line cannot have a length longer than 1000

As an example, extract_lines_info just shows the first and last indices of the line and its length:

from pyvista import examples
dataset = examples.download_armadillo()
cut = dataset.slice()

cut = dataset.slice().strip()
extract_lines_info(cut.lines)

array([[ 0, 854, 1001],
[ 6, 0, 258],
[ 6, 854, 256]])

where you see that the first line is limited to 1000 elements (the first point has duplicated index)

cut = dataset.slice().strip(max_length=5000)
extract_lines_info(cut.lines)

array([[ 0, 0, 1513]])

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@caleb-oconnor
Comment options

Comment options

You must be logged in to vote
1 reply
@caleb-oconnor
Comment options

Answer selected by caleb-oconnor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants