Fabric
Last update: 16.07.2025class compolyx.Fabric(graph, obj, parent=None)
Class to represent fabric.
Attributes
| Name | Description |
|---|---|
Fabric.active |
Active status of object |
Fabric.area_price |
Area price of fabric |
Fabric.area_weight |
Area weight of fabric |
Fabric.cut_off_material |
Cut-off material used in cut-off areas of this fabric |
Fabric.cut_off_material_handling |
Type defining how cut-off material is used in cut-off areas of this fabric |
Fabric.draping_material_model |
Draping material model |
Fabric.draping_ud_coefficient |
UD draping coefficient |
Fabric.drop_off_material |
Drop-off material used in drop-off areas of this fabric |
Fabric.drop_off_material_handling |
Type defining how drop-off material is used in drop-off areas of this fabric |
Fabric.enabled |
Whether this object is currently enabled or not |
Fabric.graph_plot |
Graph Plot object used to configure 2D plots |
Fabric.id |
ID of object |
Fabric.ignore_for_postprocessing |
Flag if this material is not postprocessed |
Fabric.is_dict_item |
Specifies whether the object is an item of a dict |
Fabric.is_list_item |
Specifies whether the object is an item of a list |
Fabric.link_path |
Root path of the current node in the tree for links to this object |
Fabric.material |
Material of the fabric |
Fabric.name |
Name of object |
Fabric.parent |
Parent object in tree |
Fabric.root_path |
Root path of the current node in the tree |
Fabric.status |
Status of the object |
Fabric.status_changed |
Boolean flag which is set to true in C++ when up-to-date status of object changes |
Fabric.thickness |
Thickness of fabric |
Fabric.uid |
UID of object |
Fabric.vertex |
Throws an error if the object has been removed from the graph |
Methods
| Name | Description |
|---|---|
Fabric.capture_analysis_plot([path, size]) |
Saves the 2D polar plot to a file |
Fabric.clt_query([query]) |
Returns the properties of the classical laminate theory |
Fabric.create_plot([query]) |
Generates 2D plots with the results of interest |
Fabric.find_parent(type) |
Steps up the tree and returns the first parent with given type |
Fabric.is_constant() |
Returns true if all engineering constants and strength limits of the assigned material are constant |
Fabric.obj_exists() |
Checks if __obj still references the C++ object (i.e. has not been reset to None by self._delete) and exists in the graph |
Fabric.serialize() |
Serialize to Python string |
Fabric.serialize_name_and_id() |
Helper function to serialize name and ID |
Fabric.update() |
|
Fabric.update_plot() |
Updates the 2D plot |
Fabric.visit(visitor) |
Walk through the tree and let the visitor perform an action on every descendant node |