v_sim.PathsIter

Fields

Name

Type

Access

Description

item

int

r/w

private

parent

v_sim.Paths

r/w

a pointer to the v_sim.Paths this iter is running on.

path

[object]

r/w

private

Methods

addSegment (data)

next ()

Details

class v_sim.PathsIter

An iterator to run on the various segments stored in the path.

New in version 3.9.

addSegment(data)
Parameters:

data ([float]) – a buffer.

Add vertices in the v_sim.GlExtPackingModels.RGBA_XYZ layout to data, corresponding to current segment of self.

New in version 3.9.

next()
Returns:

True if the iterator is pointing on a valid segment.

Return type:

bool

Iterate to the next segment in the path.

New in version 3.9.