clear_shape_modelT_clear_shape_modelClearShapeModelClearShapeModelclear_shape_model (算子名称)
名称
clear_shape_modelT_clear_shape_modelClearShapeModelClearShapeModelclear_shape_model — Free the memory of a shape model.
参数签名
Herror T_clear_shape_model(const Htuple ModelID)
def clear_shape_model(model_id: HHandle) -> None
描述
该算子 clear_shape_modelclear_shape_modelClearShapeModelClearShapeModelClearShapeModelclear_shape_model frees the memory of a shape
model that was created by create_shape_modelcreate_shape_modelCreateShapeModelCreateShapeModelCreateShapeModelcreate_shape_model,
create_scaled_shape_modelcreate_scaled_shape_modelCreateScaledShapeModelCreateScaledShapeModelCreateScaledShapeModelcreate_scaled_shape_model, or
create_aniso_shape_modelcreate_aniso_shape_modelCreateAnisoShapeModelCreateAnisoShapeModelCreateAnisoShapeModelcreate_aniso_shape_model. After calling
clear_shape_modelclear_shape_modelClearShapeModelClearShapeModelClearShapeModelclear_shape_model, the model can no longer be used. The
handle ModelIDModelIDModelIDModelIDmodelIDmodel_id becomes invalid.
运行信息
- 多线程类型:可重入(与非独占操作符并行运行)。
- 多线程作用域:全局(可以从任何线程调用)。
- 未经并行化处理。
This operator modifies the state of the following input parameter:
During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.
参数表
ModelIDModelIDModelIDModelIDmodelIDmodel_id (input_control, state is modified) shape_model → HShapeModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the model.
结果
If the handle of the model is valid, 该算子
clear_shape_modelclear_shape_modelClearShapeModelClearShapeModelClearShapeModelclear_shape_model 返回值 2 (
H_MSG_TRUE)
. If necessary an
exception is raised.
可能的前置算子
create_generic_shape_modelcreate_generic_shape_modelCreateGenericShapeModelCreateGenericShapeModelCreateGenericShapeModelcreate_generic_shape_model,
write_shape_modelwrite_shape_modelWriteShapeModelWriteShapeModelWriteShapeModelwrite_shape_model
模块
Matching