Demonstrate converting an OBJ model to CAD.
This converts an OBJ file for Orion into a CAD data structure. The OBJ file must only contain triangles.
The resulting file can be used to build other CAD files by loading it as a subassembly.
BuildCADModel( 'add subassembly', 'OrionNew' );
%-------------------------------------------------------------------------- % Copyright (c) 2019 Princeton Satellite Systems, Inc. % All rights reserved. %-------------------------------------------------------------------------- % Since Version 2019.1 %-------------------------------------------------------------------------- % We first did this % s = 13.146889702038683; % RotateOBJFile( 'Orion_spacecraft_game.obj', [], eye(3), s ) % Orion_spacecraft_game_R.obj g = LoadCAD('Orion_spacecraft_game_R.obj'); SaveStructure( g, 'OrionNew' ) %--------------------------------------