cortex.freesurfer.stretch_mwall¶
- cortex.freesurfer.stretch_mwall(pts, polys, mwall)[source]¶
Stretch the medial wall vertices of an inflated surface out into a flat disc, as a starting point for flattening.
- Parameters:
- ptsndarray
Vertex coordinates of the (typically inflated) surface.
- polysndarray
Triangle faces of the surface.
- mwallarray-like
Indices of the medial wall vertices to stretch out.
- Returns:
- layoutSpringLayout
A SpringLayout initialized with the medial wall vertices pinned at their new, stretched-out positions and the original pts as the rest-length reference, ready to be relaxed with .run().