![]() |
Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2024.
|
Provide various export and import methods. More...
Enumerations | |
| enum | E57DataType { TLS = 0 , MMS = 1 , Mixed = 2 } |
| Type describing how the data has been scanned. More... | |
Functions | |
| Object | ExportCloud (SCloud cloud, string fileName, SMatrix coordinateSystemMatrix=SMatrix(), boolean exportLASZClassifColor=false) |
| Export a SCloud to LAS File (*.las), LAZ File (*.laz) or ASTM E57 3D Image File (*.e57) More... | |
| Object | ExportE57 (Array< SCloud > clouds, Array< SImage > images, string filePath) |
| Export clouds and/or images in e57. More... | |
| Object | ExportProject (string fileName, Array< SComp > elementsToExport, number textHeight=1, SMatrix coordinateSystemMatrix=SMatrix()) |
| Save a table of SComp in a DXF file. More... | |
| Object | ExportProject (string fileName, number whatToSave=0, number textHeight=1, SMatrix coordinateSystemMatrix=SMatrix()) |
| Save all components of the current document in a DXF file. More... | |
| Object | GetNbTexture (string fileName, boolean convertCubicImagesToSpherical=false) |
| Get the number of textures in a *.xml (LandXML) or *.e57 file. More... | |
| Object | ImportCloud (string fileName, number nbPtToKeep=6000000, boolean importScanDir=true) |
| Import clouds from supported files. More... | |
| Object | ImportE57 (string filePath, boolean importClouds=true, boolean importedImages=true, E57DataType cloudDataType=SSurveyingFormat.TLS, number nbPtToKeep=6000000, boolean convertCubicImagesToSpherical=true) |
| Import clouds and/or images from e57 files. More... | |
| Object | ImportProject (string fileName, number nbPtToKeep=6000000, boolean importScanDir=true, boolean convertCubicImagesToSpherical=true) |
| Import data from a (LandXML, Dwg, Dxf, e57) file. More... | |
Provide various export and import methods.
| Object SSurveyingFormat::ExportCloud | ( | SCloud | cloud, |
| string | fileName, | ||
| SMatrix | coordinateSystemMatrix = SMatrix(), |
||
| boolean | exportLASZClassifColor = false |
||
| ) |
Export a SCloud to LAS File (*.las), LAZ File (*.laz) or ASTM E57 3D Image File (*.e57)
| cloud | (SCloud) The SCloud to export |
| fileName | (string) The path and name of the file to save |
| coordinateSystemMatrix | (SMatrix) The matrix to define a UCS used for the export (or identity to use the WCS) |
| exportLASZClassifColor | (boolean) If set to true, uses the classification colors (possibly instead of the real colors) when exporting to LAS/LAZ file formats |
| ret.ErrorCode | (number) The error code
|
| Object SSurveyingFormat::ExportE57 | ( | Array< SCloud > | clouds, |
| Array< SImage > | images, | ||
| string | filePath | ||
| ) |
Export clouds and/or images in e57.
| clouds | (Array<SCloud>) Table of clouds to export |
| images | (Array<SImage>) Table of images to export |
| filePath | (string) The path of the e57 file to export |
| ret.ErrorCode | (number) The error code
|
| Object SSurveyingFormat::ExportProject | ( | string | fileName, |
| Array< SComp > | elementsToExport, | ||
| number | textHeight = 1, |
||
| SMatrix | coordinateSystemMatrix = SMatrix() |
||
| ) |
Save a table of SComp in a DXF file.
| fileName | (string) The path and name of the file to save |
| elementsToExport | (Array<SComp>) The table of elements to save |
| textHeight | (number) The static text height to use in the DXF file (TextHeight > 0) |
| coordinateSystemMatrix | (SMatrix) The matrix to define a UCS used for the export (or identity to use the WCS) |
| ret.ErrorCode | (number) The error code
|
| Object SSurveyingFormat::ExportProject | ( | string | fileName, |
| number | whatToSave = 0, |
||
| number | textHeight = 1, |
||
| SMatrix | coordinateSystemMatrix = SMatrix() |
||
| ) |
Save all components of the current document in a DXF file.
| fileName | (string) The path and name of the file to save |
| whatToSave | (number) Save criteria
|
| textHeight | (number) The static text height to use in the DXF file (TextHeight > 0) |
| coordinateSystemMatrix | (SMatrix) The matrix to define a UCS used for the export (or identity to use the WCS) |
| ret.ErrorCode | (number) The error code
|
| Object SSurveyingFormat::GetNbTexture | ( | string | fileName, |
| boolean | convertCubicImagesToSpherical = false |
||
| ) |
Get the number of textures in a *.xml (LandXML) or *.e57 file.
| fileName | (string) The LandXML or e57 filename |
| convertCubicImagesToSpherical | (boolean) If true, cubic images sets in e57 (cubefaces), if any, are converted into spherical images |
| ret.ErrorCode | (number) The error code
|
| ret.Value | (number) The number of textures contained inside the file |
| Object SSurveyingFormat::ImportCloud | ( | string | fileName, |
| number | nbPtToKeep = 6000000, |
||
| boolean | importScanDir = true |
||
| ) |
Import clouds from supported files.
| fileName | (string) The path and name of the file to import |
| nbPtToKeep | (number) The maximum number of points to import (in case of memory save), or 0 if unlimited |
| importScanDir | (boolean) If true, import scan directions (if they exist); else, ignore scan directions For .e57 files, this parameter is interpreted as "isTLSData" |
| Object SSurveyingFormat::ImportE57 | ( | string | filePath, |
| boolean | importClouds = true, |
||
| boolean | importedImages = true, |
||
| E57DataType | cloudDataType = SSurveyingFormat.TLS, |
||
| number | nbPtToKeep = 6000000, |
||
| boolean | convertCubicImagesToSpherical = true |
||
| ) |
Import clouds and/or images from e57 files.
| filePath | (string) The path of the e57 file to import |
| importClouds | (boolean) To import clouds |
| importedImages | (boolean) To import images |
| cloudDataType | (E57DataType) To provide information on the expected cloud data type
|
| nbPtToKeep | (number) The maximum number of points per setup to import (in case of memory save), or 0 if unlimited |
| convertCubicImagesToSpherical | (boolean) If true, cubic images sets (cubefaces), if any, are converted into spherical images |
| ret.ErrorCode | (number) The error code
|
| ret.CloudTbl | (Array<SCloud>) The table of SCloud inside the file |
| ret.ImageTbl | (Array<SImage>) The table of SImage inside the file |
| ret.CloudTypeTbl | (Array<E57DataType>) The cloud data type |
| Object SSurveyingFormat::ImportProject | ( | string | fileName, |
| number | nbPtToKeep = 6000000, |
||
| boolean | importScanDir = true, |
||
| boolean | convertCubicImagesToSpherical = true |
||
| ) |
Import data from a (LandXML, Dwg, Dxf, e57) file.
| fileName | (string) The path and name of the project to import |
| nbPtToKeep | (number) The maximum number of points to import (in case of memory save), or 0 if unlimited |
| importScanDir | (boolean) If true, import scan directions (if they exist); else, ignore scan directions For .e57 files, this parameter is interpreted as "isTLSData" |
| convertCubicImagesToSpherical | (boolean) If true, cubic images sets (cubefaces), if any, are converted into spherical images |
| ret.ErrorCode | (number) The error code
|
| ret.CloudTbl | (Array<SCloud>) The table of SCloud inside the project |
| ret.PolyTbl | (Array<SPoly>) The table of SPoly inside the project |
| ret.MultiTbl | (Array<SMultiline>) The table of SMultiline inside the project |
| ret.PointTbl | (Array<SPoint>) The table of SPoint inside the project |
| ret.SetMultiTbl | (Array<SSetMultiline>) The table of SSetMultiline inside the project |
| ret.ImageTbl | (Array<SImage>) The table of SImage inside the project |
| ret.CircleTbl | (Array<SCircle>) The table of SCircle inside the project |
| ret.PlaneTbl | (Array<SPlane>) The table of SPlane inside the project |
| ret.CylinderTbl | (Array<SCylinder>) The table of SCylinder inside the project |
| ret.ConeTbl | (Array<SCone>) The table of SCone inside the project |
| ret.LineTbl | (Array<SLine>) The table of SLine inside the project |
| ret.SphereTbl | (Array<SSphere>) The table of SSphere inside the project |
| ret.RoundSlotTbl | (Array<SRoundSlot>) The table of SRoundSlot inside the project |
| ret.SquareSlotTbl | (Array<SSquareSlot>) The table of SSquareSlot inside the project |
| ret.ShapeTbl | (Array<SShape>) The table of SShape inside the project |