public class MeshLabLauncher
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MESHLAB_URL
MeshLab website URL
|
static java.lang.String |
USAGE
Usage:
java [-classpath X3DJSAIL.*.jar] org.web3d.x3d.jsail.MeshLabLauncher sourceFile [resultFile] [-convert | -help | -properties fileName.properties | -MESHLAB_PATH directoryPath] |
| Constructor and Description |
|---|
MeshLabLauncher() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkMeshLabPath()
Check MeshLab local path and also executable name, reset to operating system defaults if necessary.
|
static boolean |
convertModel(java.lang.String inputFileName,
java.lang.String outputFileName)
Use meshLab to convert model from one file to another.
|
static boolean |
convertModel(java.lang.String path,
java.lang.String inputFileName,
java.lang.String outputFileName)
Use meshLab to convert model from one file to another.
|
static java.lang.String |
executeCommand(java.lang.String command)
Launch MeshLab in operating system and run command.
|
static boolean |
exportModelToFile(X3DObject modelToExport,
java.lang.String path,
java.lang.String fileName)
TODO: Use MeshLab to export geometry to STL
|
static boolean |
exportSTLtoFile(X3DObject modelToExport,
java.lang.String path,
java.lang.String fileName)
TODO: Use MeshLab to export geometry to file
|
static java.lang.String |
getMeshLabAnalytics(X3DObject modelOfInterest)
TODO: Get MeshLab metrics for X3D model of interest.
|
static MetadataSetObject |
getMeshLabAnalyticsX3dMetadataSet(X3DObject modelOfInterest)
TODO: Get MeshLab metrics as MetadataSet object.
|
static java.lang.String |
getMeshLabVersion()
Get MeshLab version.
|
static java.lang.String |
getPriorMeshLabTraceLogContents()
Get contents of MeshLab trace log file produced during most recent MeshLab operation.
|
static java.lang.String |
getPriorMeshLabTraceLogFilePath()
Get name of MeshLab trace log file produced during most recent MeshLab operation.
|
static boolean |
hasMeshLab()
Determine if MeshLab is locally available.
|
static X3DObject |
importModel(java.lang.String fileName)
Use meshLab to import model to X3D.
|
static X3DObject |
importModel(java.lang.String path,
java.lang.String fileName)
Use meshLab to import model to X3D.
|
X3DObject |
importSTL(java.lang.String path,
java.lang.String fileName)
TODO: Use meshLab to import STL geometry as X3D model
|
static void |
initialize()
Initialize this MeshLabLauncher instance to default values.
|
static void |
launchMeshLabWebPage()
Open MeshLab page
|
static void |
main(java.lang.String[] args)
Default main() method provided for test purposes, invoking run() method.
|
static void |
run(java.lang.String[] args)
Default run() method provided for test purposes, first initializing ConfigurationProperties then reading properties file (if any) and processing arguments.
|
static void |
setPriorMeshLabTraceLogFilePath(java.lang.String value)
Set name of MeshLab trace log file produced during most recent MeshLab operation.
|
static boolean |
wasPriorCommandSuccessful()
Report whether prior command was successful.
|
public static final java.lang.String USAGE
java [-classpath X3DJSAIL.*.jar] org.web3d.x3d.jsail.MeshLabLauncher sourceFile [resultFile] [-convert | -help | -properties fileName.properties | -MESHLAB_PATH directoryPath]public static final java.lang.String MESHLAB_URL
public static void checkMeshLabPath()
meshlabserver.exe on Windows, meshlabserver otherwise.public static boolean wasPriorCommandSuccessful()
meshlabserver may popup an exception window while running headless (not very smart) which can cause exception to be lost following timeout.public static java.lang.String executeCommand(java.lang.String command)
meshlabserver may popup an exception window while running headless (not very smart) which can cause exception to be lost following timeout.command - MeshLab invocationpublic static boolean convertModel(java.lang.String inputFileName,
java.lang.String outputFileName)
inputFileName - for input fileoutputFileName - for output filepublic static boolean convertModel(java.lang.String path,
java.lang.String inputFileName,
java.lang.String outputFileName)
path - directory path to file of interestinputFileName - for input fileoutputFileName - for output filepublic static X3DObject importModel(java.lang.String fileName)
fileName - for input filepublic static X3DObject importModel(java.lang.String path, java.lang.String fileName)
path - directory path to file of interestfileName - for input filepublic X3DObject importSTL(java.lang.String path, java.lang.String fileName)
path - directory path to file of interestfileName - for input filepublic static boolean exportModelToFile(X3DObject modelToExport, java.lang.String path, java.lang.String fileName)
modelToExport - X3D model of interestpath - directory path for X3D model of interestfileName - file name for X3D model of interestpublic static boolean exportSTLtoFile(X3DObject modelToExport, java.lang.String path, java.lang.String fileName)
modelToExport - X3D model of interestpath - directory path to file of interestfileName - for output filepublic static java.lang.String getMeshLabAnalytics(X3DObject modelOfInterest)
modelOfInterest - X3D model to analyzepublic static MetadataSetObject getMeshLabAnalyticsX3dMetadataSet(X3DObject modelOfInterest)
modelOfInterest - X3D model to analyzepublic static java.lang.String getMeshLabVersion()
public static boolean hasMeshLab()
public static java.lang.String getPriorMeshLabTraceLogFilePath()
public static void setPriorMeshLabTraceLogFilePath(java.lang.String value)
value - new path and file name for meshLabTraceLogFilePathpublic static java.lang.String getPriorMeshLabTraceLogContents()
public static final void initialize()
public static void main(java.lang.String[] args)
args - the command line argumentsrun(String[]),
X3DObject.handleArguments(String[])public static void run(java.lang.String[] args)
args - the command line argumentsmain(String[]),
ConfigurationProperties,
X3DObject.handleArguments(String[])public static void launchMeshLabWebPage()
Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.