read_shape_model_3dReadShapeModel3dReadShapeModel3dread_shape_model_3dT_read_shape_model_3d
Short description
read_shape_model_3dReadShapeModel3dReadShapeModel3dread_shape_model_3dT_read_shape_model_3d — Read a 3D shape model from a file.
Signature
read_shape_model_3d( filename.read FileName, out shape_model_3d ShapeModel3DID )void ReadShapeModel3d( const HTuple& FileName, HTuple* ShapeModel3DID )static void HOperatorSet.ReadShapeModel3d( HTuple fileName, out HTuple shapeModel3DID )def read_shape_model_3d( file_name: str ) -> HHandle
Herror T_read_shape_model_3d( const Htuple FileName, Htuple* ShapeModel3DID )
void HShapeModel3D::HShapeModel3D( const HString& FileName )
void HShapeModel3D::HShapeModel3D( const char* FileName )
void HShapeModel3D::HShapeModel3D( const wchar_t* FileName ) (Windows only)
public HShapeModel3D( string fileName )
void HShapeModel3D::ReadShapeModel3d( const HString& FileName )
void HShapeModel3D::ReadShapeModel3d( const char* FileName )
void HShapeModel3D::ReadShapeModel3d( const wchar_t* FileName ) (Windows only)
void HShapeModel3D.ReadShapeModel3d( string fileName )
Description
The operator read_shape_model_3dReadShapeModel3d reads a 3D shape model, which
has been written with write_shape_model_3dWriteShapeModel3d, from the file
FileNamefileNamefile_name. The default HALCON file extension for the 3D
shape model is 'sm3'.
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
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
FileNamefileNamefile_name (input_control) filename.read → (string)HTuple (HString)HTuple (string)strHtuple (char*)
File name.
File extension: .sm3
ShapeModel3DIDshapeModel3DIDshape_model_3did (output_control) shape_model_3d → (handle)HTuple (HHandle)HShapeModel3D, HTuple (IntPtr)HHandleHtuple (handle)
Handle of the 3D shape model.
Result
If the file name is valid, the operator read_shape_model_3dReadShapeModel3d
returns the value 2 (H_MSG_TRUE). If necessary an exception is raised.
Combinations with other operators
Combinations
Possible successors
find_shape_model_3dFindShapeModel3d, get_shape_model_3d_paramsGetShapeModel3dParams
See also
create_shape_model_3dCreateShapeModel3d, clear_shape_model_3dClearShapeModel3d
Module
3D Metrology