Skip to main content
Ctrl+K
Logo image Logo image

COMPAS Model

  • Introduction
  • Installation
  • Tutorial
  • Examples
  • API Reference
    • compas_model.algorithms
    • compas_model.elements
      • BlockElement
      • BlockFeature
      • Element
      • Feature
    • compas_model.interactions
      • Interaction
      • ContactInteraction
    • compas_model.materials
      • Material
      • Concrete
    • compas_model.model
      • ElementNode
      • ElementTree
      • GroupNode
      • InteractionGraph
      • Model
    • compas_model.notebook
      • ThreeBlockObject
    • compas_model.scene
      • ElementObject
  • License
COMPAS.dev
  • API Reference
  • InteractionGraph
  • InteractionGraph.from_pointcloud

InteractionGraph.from_pointcloud

classmethod InteractionGraph.from_pointcloud(cloud, degree=3)

Construct a graph from random connections between the points of a pointcloud.

Parameters:
cloudcompas.geometry.Pointcloud

A pointcloud object.

degreeint, optional

The number of connections per node.

Returns:
compas.datastructures.Graph

A graph object.

See also

to_points()
from_obj(), from_lines(), from_nodes_and_edges()
On this page
  • InteractionGraph.from_pointcloud()

© Copyright ETH Zurich - Block Research Group.

Created using Sphinx 6.2.1.

Built with the PyData Sphinx Theme 0.13.3.