Skip to main content
Ctrl+K
Logo image

COMPAS FAB

  • Introduction
  • Getting started
  • Working with backends
    • PyBullet
    • ROS
    • Access backend GUI
  • Examples
    • Fundamentals
    • Description Models
    • Backends: ROS
    • Backends: PyBullet
    • Backends: Analytical Kinematics
    • Planning: Reachability Map
  • API Reference
    • compas_fab
  • Contributor’s Guide
    • Backend clients
    • Grasshopper components
  • Citing
  • CHANGELOG
  • License
COMPAS.dev
  • API Reference
  • BoundingVolume
  • BoundingVolume.from_mesh

BoundingVolume.from_mesh

classmethod BoundingVolume.from_mesh(mesh)[source]

Create a BoundingVolume from a compas.datastructures.Mesh.

Parameters:
meshcompas.datastructures.Mesh
Returns:
BoundingVolume

Mesh to define BoundingVolume with.

Examples

>>> import compas
>>> from compas.datastructures import Mesh
>>> from compas_fab.robots import BoundingVolume
>>> mesh = Mesh.from_obj(compas.get('faces.obj'))
>>> bv = BoundingVolume.from_mesh(Mesh)
>>> bv.type
3
On this page
  • BoundingVolume.from_mesh()

© Copyright Gramazio Kohler Research.

Created using Sphinx 6.2.1.

Built with the PyData Sphinx Theme 0.13.3.