leocad/docs/leocad.1

227 lines
5.7 KiB
Groff
Raw Normal View History

2021-06-06 01:41:42 +02:00
.TH LEOCAD 1 "5 June 2021"
2011-09-07 23:06:51 +02:00
.\" NAME should be all caps, SECTION should be 1-8, maybe w/ subsection
2021-01-14 15:26:11 +01:00
.\" other params are allowed: see man(7), man(1)
2011-09-07 23:06:51 +02:00
.SH NAME
2014-03-12 00:05:21 +01:00
LeoCAD \- CAD program for LEGO models.
2011-09-07 23:06:51 +02:00
.SH SYNOPSIS
2020-12-17 19:51:18 +01:00
\fIleocad \fR[\fIOPTIONS\fR] [\fIINFILE\fR]
2011-09-07 23:06:51 +02:00
.SH "DESCRIPTION"
2014-03-12 00:05:21 +01:00
\fILeoCAD \fR is a CAD program for creating virtual LEGO models. It
has an easy to use interface and includes thousands of different
parts in its library.
2011-09-07 23:06:51 +02:00
.SH OPTIONS
Below is a summary of all of the options that \fILeoCAD\fR
2020-12-17 19:51:18 +01:00
accepts. Many options have two equivalent names, one of
2011-09-07 23:06:51 +02:00
which is a single letter preceded by -, and the other of
which is a long name preceded by --. Brackets ([ and ])
2020-12-17 19:51:18 +01:00
indicate that an option takes an optional parameter.
2011-09-07 23:06:51 +02:00
.TP
.B infile
Loads the project file \fIinfile\fR
.TP
2020-12-17 19:51:18 +01:00
\fB\-l \fIpath\fR, \fB\-\-libpath \fIpath
.br
Set the parts library location.
2011-09-07 23:06:51 +02:00
.TP
2020-12-17 19:51:18 +01:00
\fB\-i \fR[\fIoutfile.ext\fR], \fB\-\-image \fR[\fIoutfile.ext\fR]
.br
2011-09-07 23:06:51 +02:00
Saves a picture to \fIoutfile.ext \fR in the image format specified
by \fIext\fR and exits. If outfile is not given then the program will
use a name based on \fIinfile\fR. The file format is selected by \fIext\fR
and can be gif, bmp, png or jpg (if \fIext\fR is not present then the
default preferences format will be used).
.TP
2020-12-17 19:51:18 +01:00
\fB\-w \fIwidth\fR, \fB\-\-width \fIwidth
.br
2011-09-07 23:06:51 +02:00
Sets the width of the picture to \fIwidth\fR.
.TP
2020-12-17 19:51:18 +01:00
\fB\-h \fIheight\fR, \fB\-\-height \fIheight
.br
2011-09-07 23:06:51 +02:00
Sets the height of the picture to \fIheight\fR.
.TP
2020-12-17 19:51:18 +01:00
\fB\-f \fItime\fR, \fB\-\-from \fItime
.br
Start saving pictures at the step \fItime\fR. Steps start at 1.
2011-09-07 23:06:51 +02:00
.TP
2020-12-17 19:51:18 +01:00
\fB\-t \fItime\fR, \fB\-\-to \fItime
.br
Save pictures until the step \fItime\fR.
2011-09-07 23:06:51 +02:00
.TP
2020-12-17 19:51:18 +01:00
\fB\-s \fIsubmodel\fR, \fB\-\-submodel \fIsubmodel
.br
Sets the active submodel to \fIsubmodel\fR.
2011-09-07 23:06:51 +02:00
.TP
2020-12-17 19:51:18 +01:00
\fB\-c \fIcamera\fR, \fB\-\-camera \fIcamera
.br
Sets the active camera to \fIcamera\fR.
2011-09-07 23:06:51 +02:00
2017-06-23 23:57:46 +02:00
.TP
2021-01-20 13:19:29 +01:00
\fB\-ss \fIid\fR,\ \fB\-\-stud\-style\ \fIid
2020-12-17 19:51:18 +01:00
.br
Set the stud style. Valid values 0=Plain, 1=Thin Lines Logo, 2=Outline Logo, 3=Sharp Top Logo, 4=Rounded Top Logo, 5=Flattened Logo, 6=High Contrast, 7=High Contrast with Logo.
2020-12-17 19:51:18 +01:00
2017-06-23 23:57:46 +02:00
.TP
2020-12-17 19:51:18 +01:00
\fB\-\-viewpoint \fRfront\ |\ back\ |\ left\ |\ right\ |\ top\ |\ bottom\ |\ home
.br
Sets the viewpoint to one of the predefined view angles.
2017-06-23 23:57:46 +02:00
.TP
2020-12-17 19:51:18 +01:00
.BI "\-\-camera\-angles " latitude " " longitude
Set the camera angles in degrees around the model.
2017-06-23 23:57:46 +02:00
.TP
2020-12-17 19:51:18 +01:00
.BI "\-\-camera\-position " x " " y " " z " " tx " " ty " " tz " " ux " " uy " " uz
Set the camera position, target and up vector using the \fILeoCAD\fR coordinate system.
2017-06-23 23:57:46 +02:00
.TP
2020-12-17 19:51:18 +01:00
.BI "\-\-camera\-position-ldraw " x " " y " " z " " tx " " ty " " tz " " ux " " uy " " uz
Set the camera position, target and up vector using the \fILDraw\fR coordinate system.
2017-06-23 23:57:46 +02:00
.TP
.B \-\-orthographic
Use an orthographic projection.
2020-12-17 19:51:18 +01:00
.TP
.BI "\-\-fov " degrees
Set the vertical field of view used to render images.
.TP
.BI "\-\-zplanes " near " " far
Set the near and far clipping planes used to render images (1 <= \fInear\fR < \fIfar\fR).
.TP
.B \-\-fade\-steps
Render parts from prior steps faded.
.TP
.B \-\-no\-fade\-steps
Do not render parts from prior steps faded.
.TP
.BI "\-\-fade\-steps\-color " color
2021-01-14 15:26:11 +01:00
Color to use for rendering faded parts. (#AARRGGBB where AA, RR, GG, and BB are hexadecimal values for alpha, red, green, and blue respectively.)
2020-12-17 19:51:18 +01:00
2011-09-07 23:06:51 +02:00
.TP
.B \-\-highlight
2020-12-17 19:51:18 +01:00
Highlight parts in the steps they appear.
.TP
.B \-\-no\-highlight
Do not highlight parts in the steps they appear.
.TP
.BI "\-\-highlight\-color " color
2021-01-14 15:26:11 +01:00
Color to use to highlight parts, (#AARRGGBB where AA, RR, GG, and BB are hexadecimal values for alpha, red, green, and blue respectively.)
2011-09-07 23:06:51 +02:00
.TP
2020-12-17 19:51:18 +01:00
\fB\-\-shading \fRwireframe\ |\ flat\ |\ default\ |\ full
.br
Select shading mode for rendering.
.TP
.BI "\-\-line-width " width
2022-05-16 21:36:52 +02:00
Set the width of the edge lines.
2020-12-17 19:51:18 +01:00
2011-09-07 23:06:51 +02:00
.TP
2020-12-17 19:51:18 +01:00
.BI "\-\-aa\-samples " count
AntiAliasing sample size (1, 2, 4, or 8).
2011-09-07 23:06:51 +02:00
.TP
\fB\-scc \fI#AARRGGBB\fR,\ \fB\-\-stud\-cylinder\-color\ \fI#AARRGGBB
.br
High contrast stud cylinder color.
.TP
\fB\-ec \fI#AARRGGBB\fR,\ \fB\-\-edge\-color\ \fI#AARRGGBB
.br
High contrast edge color.
.TP
\fB\-bec \fI#AARRGGBB\fR,\ \fB\-\-black\-edge\-color\ \fI#AARRGGBB
.br
High contrast edge color for black parts.
.TP
\fB\-dec \fI#AARRGGBB\fR,\ \fB\-\-dark\-edge\-color\ \fI#AARRGGBB
.br
High contrast edge color for dark color parts.
.TP
\fB\-aec,\ \fB\-\-automate\-edge\-color
.br
Enable automatically adjusted edge colors.\
.TP
\fB\-cc \fIfloat\fR,\ \fB\-\-color\-contrast\ \ffloat
.br
Set the near and far clipping planes used to render images (1 <= \fInear\fR < \fIfar\fR).
.TP
\fB\-ldv \fIfloat\fR,\ \fB\-\-light\-dark\-value\ \ffloat
.br
Set the value to indicate a light or dark color.
2017-06-23 23:57:46 +02:00
.TP
2020-12-17 19:51:18 +01:00
\fB\-obj \fR[\fIoutfile.obj\fR]
.br
2017-06-23 23:57:46 +02:00
Exports the model to wavefront format.
.TP
2020-12-17 19:51:18 +01:00
\fB\-3ds \fR[\fIoutfile.3ds\fR]
.br
2017-06-23 23:57:46 +02:00
Exports the model to 3DS format.
.TP
2020-12-17 19:51:18 +01:00
\fB\-dae \fR[\fIoutfile.dae\fR]
.br
Exports the model to COLLADA DAE format.
.TP
2020-12-17 19:51:18 +01:00
\fB\-html \fR[\fIpath\fR]
.br
Creates an HTML page for the model.
2020-12-17 19:51:18 +01:00
.TP
.BR \-v ",\ " \-\-version
Output version information and exit.
.TP
.BR \-? ",\ " \-\-help
Display a brief usage synopsis and exit.
2011-09-07 23:06:51 +02:00
.SH ENVIRONMENT
2014-03-12 00:05:21 +01:00
``LEOCAD_LIB'' may be set to the path of the parts library.
2011-09-07 23:06:51 +02:00
.SH EXAMPLES
.PP
2013-01-06 16:33:37 +01:00
$ leocad car.lcd \-i car.png \-w 640 \-h 480
2011-09-07 23:06:51 +02:00
.PP
This will start LeoCAD, load the file "car.lcd," create a png called
"car.png" with a resolution of 640x480 and exit when done.
.SH FILES
.TP
2014-03-12 00:05:21 +01:00
.I ~/.config/LeoCAD Software/LeoCAD.conf
2011-09-07 23:06:51 +02:00
User preferences file
.SH BUGS
2018-03-22 00:47:00 +01:00
If you find any bugs please report them at https://github.com/leozide/leocad/issues
2011-09-07 23:06:51 +02:00
.SH AUTHOR
2014-03-12 00:05:21 +01:00
\fILeoCAD \fRis written by Leonardo Zide <leozide@gmail.com>.
2018-03-22 00:47:00 +01:00
You can visit the LeoCAD homepage at https://www.leocad.org/
2011-09-07 23:06:51 +02:00
2020-12-17 19:51:18 +01:00
This manual page was originally written by Patrick Mahoney <pat7@gmx.net>,
2011-09-07 23:06:51 +02:00
for the Debian GNU/Linux system (but may be used by others).
2020-12-17 19:51:18 +01:00
It has since been edited by others.