pymead.core.constraints.AntiParallel3Constraint#

class AntiParallel3Constraint(p1: Point, p2: Point, p3: Point, name: str | None = None, polyline: PolyLine | None = None, point_on_curve: Point | None = None, geo_col=None)[source]#

Bases: GeoCon

__init__(p1: Point, p2: Point, p3: Point, name: str | None = None, polyline: PolyLine | None = None, point_on_curve: Point | None = None, geo_col=None)[source]#
Parameters:

sub_container (str) – Sub-container where this object will be stored in the GeometryCollection

Methods

get_dict_rep()

Gets a dictionary representation of the pymead object.

verify()

Attributes

default_name

get_dict_rep() dict[source]#

Gets a dictionary representation of the pymead object. In general, this dictionary should consist of only the required arguments for object instantiation. For example, the dictionary representation of a point looks something like this: {"x": 0.3, "y": 0.5}. If the argument requires a reference to a PymeadObj rather than a string or float value, the name() method should be the value that is stored. For an example, see the overridden value of this method in pymead.core.airfoil.Airfoil. All subclasses of PymeadObj must implement this method, since it is the way pymead objects are stored in saved instances of a GeometryCollection (.jmea files).