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.from_shape

Block.from_shape

classmethod Block.from_shape(shape, **kwargs)

Construct a mesh from a primitive shape.

Parameters:
shapecompas.geometry.Shape

The input shape to generate a mesh from.

**kwargsdict[str, Any], optional

Optional keyword arguments to be passed on to compas.geometry.Shape.to_vertices_and_faces().

Returns:
compas.datastructures.Mesh

A mesh object.

On this page
  • Block.from_shape()

© Copyright ETH Zurich - Block Research Group.

Created using Sphinx 7.4.7.

Built with the PyData Sphinx Theme 0.13.3.