clear_shape_modelT_clear_shape_modelClearShapeModelClearShapeModelclear_shape_model (算子)
名称
clear_shape_modelT_clear_shape_modelClearShapeModelClearShapeModelclear_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.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
此算子修改后续输入参数的状态:
在执行此算子时,若该参数值需在多个线程间使用,则必须对其访问进行同步。
参数
ModelIDModelIDModelIDModelIDmodelIDmodel_id (输入控制,状态被修改) shape_model → HShapeModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the model.
结果
如果模型的句柄有效,算子
clear_shape_modelclear_shape_modelClearShapeModelClearShapeModelClearShapeModelclear_shape_model 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
可能的前趋
create_generic_shape_modelcreate_generic_shape_modelCreateGenericShapeModelCreateGenericShapeModelCreateGenericShapeModelcreate_generic_shape_model,
write_shape_modelwrite_shape_modelWriteShapeModelWriteShapeModelWriteShapeModelwrite_shape_model
模块
匹配