NodeInterface interface

Contract describing Nodes.

Signature:

interface NodeInterface 

Remarks

Nodes are parts of a Model to which design elements can be applied (MeshInterface, ZoneInterface).

For example:

A t-shirt model may have front, back, left sleeve, and right sleeve Meshes, and front and back Zones for DTG graphic placement.

Methods

Method

Description

computePolygons(options)

Compute polygons for this node.

contains(point)

Check whether the node contains the provided point.

getArea()

Get the cumulative area of this node's UV islands in UV units.

getBoundingBox()

Get the node bounding box in UV units.

getCenter()

Get the center of the polygon with the largest area.

getHumanReadableName()

Get a human-readable name for this node, indicating the name and index of the node.

getName()

Get the node name.

getPolygons(options)

Get polygons representing the UV islands of this node.

getRatio()

See ModelInterface.getRatio().

getUri()

Get the node URI.

getUrn()

Get the node URI.

intersects(node)

Check whether the node intersects with the provided node.

load()

Run any initialization needed for this node.

Get in touch

We'd love to learn more about your vision and how we can help.

PressPrivacyTermsSupportCopyright © 2024 Core3D, Inc. All Rights Reserved.