ClassesClasses | | Operators

read_shape_model_3dread_shape_model_3dReadShapeModel3dReadShapeModel3d (Operator)

Name

read_shape_model_3dread_shape_model_3dReadShapeModel3dReadShapeModel3d — Read a 3D shape model from a file.

Signature

read_shape_model_3d( : : FileName : ShapeModel3DID)

Herror read_shape_model_3d(const char* FileName, Hlong* ShapeModel3DID)

Herror T_read_shape_model_3d(const Htuple FileName, Htuple* ShapeModel3DID)

void ReadShapeModel3d(const HTuple& FileName, HTuple* ShapeModel3DID)

void HShapeModel3D::HShapeModel3D(const HString& FileName)

void HShapeModel3D::HShapeModel3D(const char* FileName)

void HShapeModel3D::ReadShapeModel3d(const HString& FileName)

void HShapeModel3D::ReadShapeModel3d(const char* FileName)

static void HOperatorSet.ReadShapeModel3d(HTuple fileName, out HTuple shapeModel3DID)

public HShapeModel3D(string fileName)

void HShapeModel3D.ReadShapeModel3d(string fileName)

Description

The operator read_shape_model_3dread_shape_model_3dReadShapeModel3dReadShapeModel3dReadShapeModel3d reads a 3D shape model, which has been written with write_shape_model_3dwrite_shape_model_3dWriteShapeModel3dWriteShapeModel3dWriteShapeModel3d, from the file FileNameFileNameFileNameFileNamefileName. The default HALCON file extension for the 3D shape model is 'sm3'.

Execution Information

This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.

Parameters

FileNameFileNameFileNameFileNamefileName (input_control)  filename.read HTupleHTupleHtuple (string) (string) (HString) (char*)

File name.

File extension: .sm3

ShapeModel3DIDShapeModel3DIDShapeModel3DIDShapeModel3DIDshapeModel3DID (output_control)  shape_model_3d HShapeModel3D, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Handle of the 3D shape model.

Result

If the file name is valid, the operator read_shape_model_3dread_shape_model_3dReadShapeModel3dReadShapeModel3dReadShapeModel3d returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.

Possible Successors

find_shape_model_3dfind_shape_model_3dFindShapeModel3dFindShapeModel3dFindShapeModel3d, get_shape_model_3d_paramsget_shape_model_3d_paramsGetShapeModel3dParamsGetShapeModel3dParamsGetShapeModel3dParams

See also

create_shape_model_3dcreate_shape_model_3dCreateShapeModel3dCreateShapeModel3dCreateShapeModel3d, clear_shape_model_3dclear_shape_model_3dClearShapeModel3dClearShapeModel3dClearShapeModel3d

Module

3D Metrology


ClassesClasses | | Operators