Skip to main content
Ctrl+K
Logo image

COMPAS Model

  • Introduction
  • Installation
  • Tutorial
  • Examples
    • DEM: A Leaning Stack of Blocks
  • API Reference
    • compas_model.elements
      • BlockElement
      • BlockFeature
      • BlockGeometry
      • Element
    • compas_model.interactions
      • Interaction
      • ContactInterface
    • compas_model.materials
      • Material
      • Concrete
      • Timber
    • compas_model.models
      • ElementNode
      • ElementTree
      • InteractionGraph
      • Model
      • BlockModel
    • compas_model.notebook
      • ThreeBlockObject
      • ThreeModelObject
    • compas_model.scene
      • ElementObject
      • BlockObject
      • ModelObject
  • License
COMPAS.dev
  • API Reference
  • BlockGeometry
  • BlockGeometry.from_shape

BlockGeometry.from_shape

classmethod BlockGeometry.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
  • BlockGeometry.from_shape()

© Copyright ETH Zurich - Block Research Group.

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.13.3.