Contact
- class compas_model.interactions.Contact(points, frame, size, mesh=None, name=None)
Bases:
Data
Class representing a planar contact between two elements.
- Parameters:
- pointslist[
compas.geometry.Point
] The points defining the contact polygon.
- frame
compas.geometry.Frame
The local coordinate system of the contact.
- sizefloat
The total area of the contact polygon.
- mesh
compas.datastructures.Mesh
, optional The mesh representation of the contact surface.
- namestr, optional
A human-readable name.
- pointslist[
- Attributes:
- frame
compas.geometry.Frame
The local coordinate frame of the interface polygon.
- mesh
compas.datastructure.Mesh
A mesh representation of the interface.
- pointslist[
compas.geometry.Point
] The corner points of the interface polygon.
- polygon
compas.geometry.Polygon
The interfaces polygon.
- sizefloat
The area of the interface polygon.
- frame
Warning
The definition of contact surfaces is under active development and may change frequently.
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.