Houdini 20.5 hapi

hapi.setFaceCounts function

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

Usage

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

Set 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 SOP node id.

part_id

Currently not used. Just pass 0.

face_counts_array

An integer array at least the size of length.

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.

hapi