manimgeo.components.multiple.multiple module¶
MultipleComponents 多对象类
- class manimgeo.components.multiple.multiple.MultipleComponents(**data)[源代码]¶
基类:
BaseGeometry- attrs: List[str]¶
- geometry_objects: List[BaseGeometry]¶
- args: MultipleConstructArgs¶
- property construct_type: MultipleConstructType¶
- classmethod Multiple(geometry_objects, name='')[源代码]¶
构造多个几何对象组成的列表
geometry_objects: 需要组合的几何对象列表
- 返回类型:
- classmethod FilteredMultiple(geometry_objects, filter_func, name='')[源代码]¶
构造多个几何对象组成的列表,并根据过滤函数筛选
geometry_objects: 需要组合的几何对象列表 filter_func: 过滤函数,接受一个几何对象列表,并返回一个布尔值列表
- 返回类型:
- classmethod FilteredMultipleMono(geometry_objects, filter_func, name='')[源代码]¶
构造多个几何对象组成的列表,并根据单个过滤函数筛选
geometry_objects: 需要组合的几何对象列表 filter_func: 单个过滤函数,接受一个几何对象,并返回一个布尔值
- 返回类型:
- classmethod Union(multiples, name='')[源代码]¶
构造多个 MultipleComponents 的并集
multiples: 需要组合的 MultipleComponents 列表
- 返回类型:
- classmethod Intersection(multiples, name='')[源代码]¶
构造多个 MultipleComponents 的交集
multiples: 需要组合的 MultipleComponents 列表
- 返回类型:
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True, 'frozen': False}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].