manimgeo.components.multiple.multiple module

MultipleComponents 多对象类

class manimgeo.components.multiple.multiple.MultipleComponents(**data)[源代码]

基类:BaseGeometry

attrs: List[str]
geometry_objects: List[BaseGeometry]
args: MultipleConstructArgs
classmethod set_adapter_before_validation(data)[源代码]

在验证前设置 adapter 字段

返回类型:

Any

property construct_type: MultipleConstructType
model_post_init(_MultipleComponents__context)[源代码]

模型初始化后,更新名字并添加依赖关系

classmethod Multiple(geometry_objects, name='')[源代码]

构造多个几何对象组成的列表

geometry_objects: 需要组合的几何对象列表

返回类型:

MultipleComponents

classmethod FilteredMultiple(geometry_objects, filter_func, name='')[源代码]

构造多个几何对象组成的列表,并根据过滤函数筛选

geometry_objects: 需要组合的几何对象列表 filter_func: 过滤函数,接受一个几何对象列表,并返回一个布尔值列表

返回类型:

MultipleComponents

classmethod FilteredMultipleMono(geometry_objects, filter_func, name='')[源代码]

构造多个几何对象组成的列表,并根据单个过滤函数筛选

geometry_objects: 需要组合的几何对象列表 filter_func: 单个过滤函数,接受一个几何对象,并返回一个布尔值

返回类型:

MultipleComponents

classmethod Union(multiples, name='')[源代码]

构造多个 MultipleComponents 的并集

multiples: 需要组合的 MultipleComponents 列表

返回类型:

MultipleComponents

classmethod Intersection(multiples, name='')[源代码]

构造多个 MultipleComponents 的交集

multiples: 需要组合的 MultipleComponents 列表

返回类型:

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].