class CAD_MODEL_SLICER_APP

(source code)

Description

Command line interface to command CAD_MODEL_SLICER

Instructions

Usage:

el_toolkit -cad_model_slicer -model <json model path> [-logging]

el_toolkit -cad_model_slicer -help

el_toolkit -version

Output

If the input file is named, my-model.json, the output will be named

my-model-dry.json
my-model-wet.json
note
	description: "Command line interface to command [$source CAD_MODEL_SLICER]"
	instructions: "[
		**Usage:**
		
			el_toolkit -cad_model_slicer -model <json model path> [-logging]

			el_toolkit -cad_model_slicer -help

			el_toolkit -version

		**Output**
		
		If the input file is named, `my-model.json', the output will be named
			
			my-model-dry.json
			my-model-wet.json
	]"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2017 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2020-02-16 9:16:33 GMT (Sunday 16th February 2020)"
	revision: "2"

class
	CAD_MODEL_SLICER_APP

inherit
	EL_LOGGED_COMMAND_LINE_SUB_APPLICATION [CAD_MODEL_SLICER]

create
	make

feature {NONE} -- Implementation

	argument_specs: ARRAY [EL_COMMAND_ARGUMENT]
		do
			Result := <<
				valid_required_argument ("model", "Path to model data in JSON format", << file_must_exist >>)
			>>
		end

	default_make: PROCEDURE [like command]
		do
			Result := agent {like command}.make (create {EL_FILE_PATH})
		end

	log_filter: ARRAY [like CLASS_ROUTINES]
			--
		do
			Result := <<
				[{like Current}, All_routines],
				[{CAD_MODEL_SLICER}, All_routines]
			>>
		end

feature {NONE} -- Constants

	Description: STRING = "Slice CAD model across water plane into dry part and wet part and save as 2 files"
end