Struct hapi_rs::geometry::Geometry

source ·
pub struct Geometry {
    pub node: HoudiniNode,
    /* private fields */
}
Expand description

Represents a SOP node with methods for manipulating geometry.

Fields§

§node: HoudiniNode

Implementations§

Get information about Node’s geometry. Note: The node must be cooked before calling this method.

Retrieve the number of vertices for each curve in the part.

Retrieve the orders for each curve in the part if the curve has varying order.

Retrieve the knots of the curves in this part.

Get array containing the vertex-point associations where the ith element in the array is the point index the ith vertex associates with.

Return material nodes applied to geometry.

Get geometry group names by type.

Get num geometry elements by type (points, prims, vertices).

Get number of attributes by type.

Convenient method for getting the P attribute

Get geometry attribute by name and owner.

Add a new numeric attribute to geometry.

Add a new numeric array attribute to geometry.

Add a new string attribute to geometry

Add a new string array attribute to geometry.

Create a new geometry group .

Delete a geometry group.

Set element membership for a group.

Get element membership for a group.

Number of geometry groups by type.

Iterate over volume tiles and apply a function to each tile.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.