Geometry

class py3dm.Geometry

Bases: OpenNURBSObject

Python bindings for the openNURBS ON_Geometry class.

ON_Geometry: base class for all geometry classes that must provide runtime class id. It provides interface for common geometric operations like finding bounding boxes and transforming.

dimension() int

Returns the dimension of the object.

Notes

The dimension is typically three. For parameter space trimming curves the dimension is two. In rare cases the dimension can be one or greater than three.

is_deformable() bool

Returns True if object can be accurately modified with “squishy” transformations like projections, shears, an non-uniform scaling.

is_valid(text_log: TextLog | None = None) bool

The base implementation returns False.