Start of trail End of trail navigation bar

Table of Contents

qc_convert_to_q3d

Converts an x3d mesh file to a proprietary q3d format.

Syntax

qc_convert_to_q3d(filename) % Converts the given filename to a q3d format.
    

Description

Converts the given x3d file to a more compact, proprietary q3d format. The original x3d file is left intact. The output q3d file will be placed in the same directory as the source x3d file. No tools are provided to convert q3d files back to x3d, so this can be helpful if you want to distribute mesh files that cannot be loaded into another CAD program.

If no filename, or an invalid filename is specified then an error will be returned.

Parameters

filename

A string indicating the path. eg. 'c:\example\mesh.x3d' or 'mesh.x3d'

Outputs

This function has no outputs.

Examples

        qc_convert_to_q3d(''c:\example\mesh.x3d''); % Converts mesh.x3d to q3d using an absolute path
        qc_convert_to_q3d(''example\mesh.x3d''); % Converts mesh.x3d to q3d using an relative subfolder
        qc_convert_to_q3d(''mesh.x3d''); % Converts mesh.x3d to q3d using the current matlab path
    

See Also

 

navigation bar