Houdini 20.0 hapi

hapi.getFaceCounts function

Get the array of faces where the nth integer in the array is

Usage

getFaceCounts(session: hapi.Session, node_id: int, part_id: int, start: int, length: int) → list of int

Get the array of faces where the nth integer in the array is the number of vertices the nth face has.

session

The session of Houdini you are interacting with. See hapi.Session for more on sessions. Pass None to just use the default in-process session.

node_id

The node id.

part_id

The part id.

start

First index of range. Must be at least 0 and at most hapi.PartInfo.faceCount - 1.

length

Must be at least 0 and at most hapi.PartInfo.faceCount - start.

Returns face_counts_array as a list of int.

hapi