Skip to main content
Ctrl+K
Logo image

COMPAS Model

  • Introduction
  • Installation
  • Tutorial
  • Examples
  • API Reference
    • compas_model.algorithms
      • mesh_mesh_contacts
    • compas_model.elements
      • Element
      • Feature
    • compas_model.geometry
      • is_collision_poly_poly_xy
      • is_intersection_box_box
      • is_intersection_line_aabb
      • is_intersection_line_box
      • is_intersection_ray_aabb
      • is_intersection_ray_box
      • is_intersection_segment_aabb
      • is_intersection_segment_box
      • minkowski_difference_xy
      • minkowski_sum_xy
      • pca_box
    • compas_model.interactions
      • Contact
      • Modifier
    • compas_model.materials
      • Material
      • Concrete
      • Steel
      • Timber
    • compas_model.models
      • ElementNode
      • ElementTree
      • InteractionGraph
      • Model
    • compas_model.scene
      • ElementObject
      • ModelObject
  • 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 8.2.3.

Built with the PyData Sphinx Theme 0.13.3.