RhinoBrepFace

class compas_rhino.geometry.RhinoBrepFace[source]

Bases: BrepFace

A wrapper for Rhino.Geometry.BrepFace

Attributes:
native_surfaceRhino.Geometry.Surface

The rhino native underlying geometry of this face.

loopslist[compas_rhino.geometry.RhinoBrepLoop], read-only

The list of loops which comprise this face.

surfacecompas_rhino.geometry.RhinoNurbsSurface

The compas_rhino wrapper of the underlying geometry of this face.

boundarycompas_rhino.geometry.RhinoBrepLoop, read-only

The loop which defines the outer boundary of this face.

holeslist[compas_rhino.geometry.RhinoBrepLoop], read-only

The list of loops which comprise the holes of this brep, if any.

is_planefloat, read-only

True if the geometry of this face is a plane, False otherwise.

native_faceRhino.Geometry.BrepFace

The underlying BrepFace object.

Methods

adjacent_faces

Returns a list of the faces adjacent to this face.

as_brep

Returns a Brep representation of this face.

Inherited Methods

ToString

Converts the instance to a string.

add_loop

Adds an inner loop to this face.

add_loops

Adds several inner loops to this face.

copy

Make an independent copy of the data object.

from_cone

Construct a face from a cone geometry.

from_cylinder

Construct a face from a cylinder geometry.

from_json

Construct an object of this type from a JSON file.

from_jsonstring

Construct an object of this type from a JSON string.

from_plane

Construct a face from a plane geometry.

from_sphere

Construct a face from a sphere geometry.

from_surface

Construct a face from a surfaces geometry.

from_torus

Construct a face from a torus geometry.

sha256

Compute a hash of the data for comparison during version control using the sha256 algorithm.

to_json

Convert an object to its native data representation and save it to a JSON file.

to_jsonstring

Convert an object to its native data representation and save it to a JSON string.

to_polygon

Convert the face to a polygon without underlying geometry.

try_get_nurbssurface

Returns the NURBS surface representation of this face.

validate_data

Validate the data against the object's data schema.