FlexibleMaterial
类型: 类
领域: 柔性几何
推荐导入: from cadflow.flexible import FlexibleMaterial
签名
class FlexibleMaterial(name: 'str' = 'stretch-knit', thickness: 'float' = 1.2, color: 'tuple[float, float, float]' = (0.17, 0.34, 0.52), roughness: 'float' = 0.68) -> None
功能说明
FlexibleMaterial 是 CadFlow 柔性几何领域的公共类。
原始 API 说明
Static shell properties used for thickness and appearance metadata.
参数
| 名称 | 类型 | 必需 | 默认值 | 源码说明 |
|---|---|---|---|---|
name | 'str' | 否 | 'stretch-knit' | 源码 Docstring 未单独说明。 |
thickness | 'float' | 否 | 1.2 | 源码 Docstring 未单独说明。 |
color | 'tuple[float, float, float]' | 否 | (0.17, 0.34, 0.52) | 源码 Docstring 未单独说明。 |
roughness | 'float' | 否 | 0.68 | 源码 Docstring 未单独说明。 |
返回值
类型: None
源码 Docstring 未声明更多返回语义。
异常
源码 Docstring 未声明更窄的异常契约。类型、数值、所有权、路径或后端状态无效时,仍可能抛出相应公共异常。
数据字段
| 名称 | 类型 | 默认值 |
|---|---|---|
name | 'str' | 'stretch-knit' |
thickness | 'float' | 1.2 |
color | 'tuple[float, float, float]' | (0.17, 0.34, 0.52) |
roughness | 'float' | 0.68 |
行为与约束
- 实例是不可变 dataclass 值;更新式工作流会返回替代值。
导入检查
from cadflow.flexible import FlexibleMaterial