Skip to main content
Ctrl+K
Logo image

COMPAS Assembly

  • Introduction
  • Installation
  • Tutorial
  • Examples
    • Two Blocks
    • Leaning Stack of Blocks
    • A Semicircular Arch
    • Crossvault
    • A Hemispherical Dome
    • A Curved Wall
  • API Reference
    • compas_assembly
      • compas_assembly.algorithms
      • compas_assembly.datastructures
      • compas_assembly.geometry
  • Publications
  • License
COMPAS.dev
  • API Reference
  • Block
  • Block.face_attribute

Block.face_attribute

Block.face_attribute(key, name, value=None)

Get or set an attribute of a face.

Parameters:
keyint

The face identifier.

namestr

The name of the attribute.

valueobject, optional

The value of the attribute.

Returns:
object | None

The value of the attribute, or None when the function is used as a “setter”.

Raises:
KeyError

If the face does not exist.

See also

face_attributes(), faces_attribute(), faces_attributes()
unset_face_attribute()
edge_attribute()
vertex_attribute()
On this page
  • Block.face_attribute()

© Copyright ETH Zurich - Block Research Group.

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.13.3.