New site.
111
docs/compiling.html
Normal file
|
@ -0,0 +1,111 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<title>Compiling Guide | LeoCAD</title>
|
||||
<link rel="stylesheet" href="../main.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
<!-- navbar start -->
|
||||
<div class="nav-main">
|
||||
<div class="wrap">
|
||||
<a class="nav-home" href="../index.html"><img class="nav-logo" src="../leocad-32.png" width="32" height="32"> LeoCAD </a>
|
||||
<ul class="nav-site nav-site-internal">
|
||||
<li><a href="../download.html">Download</a></li>
|
||||
<li><a href="start.html" class="active">Documentation</a></li>
|
||||
<!-- <li><a href="../help.html">Help</a></li> -->
|
||||
</ul>
|
||||
<ul class="nav-site nav-site-external">
|
||||
<li><a href="https://github.com/leozide/leocad">GitHub</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- navbar end -->
|
||||
|
||||
<section class="content wrap documentationContent">
|
||||
|
||||
<!-- docbar start -->
|
||||
<div class="nav-docs">
|
||||
<div class="nav-docs-section">
|
||||
<h3>General Information</h3>
|
||||
<ul>
|
||||
<li><a href="start.html">Getting Started</a></li>
|
||||
<li><a href="library.html">Parts Library</a></li>
|
||||
<li><a href="compiling.html" class="active">Compiling Guide</a></li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
<li><a href="history.html">Version History</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Tutorials</h3>
|
||||
<ul>
|
||||
<!--
|
||||
<li><a href="">Choosing and Adding Pieces</a></li>
|
||||
<li><a href="">Moving and Rotating Pieces</a></li>
|
||||
<li><a href="camera.html">Camera and Viewport</a></li>
|
||||
<li><a href="">Models</a></li>
|
||||
<li><a href="">Flexible Parts</a></li>
|
||||
Keyframing
|
||||
POV-Ray
|
||||
-->
|
||||
<li><a href="tutorial1.html">Basic Tutorial</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- <li><a href="">Coordinate System</a></li>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Reference</h3>
|
||||
<ul>
|
||||
<li><a href="">Meta Commands</a></li>
|
||||
<li><a href="">Configuration Shortcuts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<!-- docbar end -->
|
||||
|
||||
<div class="inner-content">
|
||||
|
||||
<h2>Getting the Source Code</h2>
|
||||
<div class="subHeader"></div>
|
||||
<p>Users that need to compile their own binaries should get the source code for the latest release from the <a href="../download.html">Download Page</a>.</p>
|
||||
<p>If you're a programmer and plan to contribute with code fixes or if you're user that wants to use the latest version and accepts the risks of doing that, then you should download the source from the Git server at https://github.com/leozide/leocad.git.</p>
|
||||
<p>Typing this will download the latest revision to a directory called 'leocad' on your computer:</p>
|
||||
<div class="highlight"><code>$ git clone https://github.com/leozide/leocad.git</code></div>
|
||||
<p>Note: You can receive notifications of source code changes by watching the project on the <a href="https://github.com/leozide/leocad">Github Page</a>.</p>
|
||||
|
||||
<h2>Required Libraries</h2>
|
||||
<p>LeoCAD requires Qt 4.8 or later to compile. You can download the Qt SDK for all platforms from <a href="http://qt-project.org">http://qt-project.org</a>.</p>
|
||||
<p>Linux users may find it easier to just use their package manager instead:</p>
|
||||
<div class="highlight"><code>$ sudo apt-get install libqt4-dev zlib1g-dev</code></div>
|
||||
<p>Although it's not required, you should also download and install a <a href="library.html">Parts Library</a>, otherwise only a very small set of basic parts will be available.</p>
|
||||
|
||||
<h2>Compiling</h2>
|
||||
<p>The easiest way to compile on any platform is to open 'leocad.pro' in Qt Creator and build it from there.</p>
|
||||
|
||||
<h4>Linux</h4>
|
||||
<p>If you're not using Qt Creator, or if you prefer to compile from the command line you can generate a Makefile using qmake and then build and install it:</p>
|
||||
<div class="highlight"><code>leocad$ qmake leocad.pro<br>leocad$ make<br>leocad$ make install</code></div>
|
||||
<p>There are two options that can be passed to qmake to customize LeoCAD builds that distribution maintainers will be interested:</p>
|
||||
<ul>
|
||||
<li>DISABLE_UPDATE_CHECK=1: Disables update checks at startup and removes that option from the menu. This is recommended to be set for distributions that have their own way of updating applications to avoid confusing users.</li>
|
||||
<li>LDRAW_LIBRARY_PATH="path": Adds an extra path to be searched at startup for the LDraw library. The path should be the root folder of the LDraw library, for example: "/usr/share/ldraw".</li>
|
||||
</ul>
|
||||
|
||||
<h4>Windows</h4>
|
||||
<p>Windows users also have the option to compile with Visual Studio, you just need to use qmake to generate the project files first:</p>
|
||||
<div class="highlight"><code>C:\leocad> qmake -tp vc</code></div>
|
||||
<p>This will generate a file called 'leocad.vcxproj' that can be opened in Visual Studio.</p>
|
||||
|
||||
<h4>OSX</h4>
|
||||
<p>To compile for OSX you'll need to add a <a href="library.html">Parts Library</a> to the folder where you downloaded the source code. You can download the Linux library and unzip it there:</p>
|
||||
<div class="highlight"><code>leocad$ unzip Library-Linux-7931.zip</code></div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- footer start -->
|
||||
<footer class="wrap"><div class="right"> © LeoCAD.org </div></footer>
|
||||
<!-- footer end -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
613
docs/history.html
Normal file
|
@ -0,0 +1,613 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<title>Version History | LeoCAD</title>
|
||||
<link rel="stylesheet" href="../main.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
<!-- navbar start -->
|
||||
<div class="nav-main">
|
||||
<div class="wrap">
|
||||
<a class="nav-home" href="../index.html"><img class="nav-logo" src="../leocad-32.png" width="32" height="32"> LeoCAD </a>
|
||||
<ul class="nav-site nav-site-internal">
|
||||
<li><a href="../download.html">Download</a></li>
|
||||
<li><a href="start.html" class="active">Documentation</a></li>
|
||||
<!-- <li><a href="../help.html">Help</a></li> -->
|
||||
</ul>
|
||||
<ul class="nav-site nav-site-external">
|
||||
<li><a href="https://github.com/leozide/leocad">GitHub</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- navbar end -->
|
||||
|
||||
<section class="content wrap documentationContent">
|
||||
|
||||
<!-- docbar start -->
|
||||
<div class="nav-docs">
|
||||
<div class="nav-docs-section">
|
||||
<h3>General Information</h3>
|
||||
<ul>
|
||||
<li><a href="start.html">Getting Started</a></li>
|
||||
<li><a href="library.html">Parts Library</a></li>
|
||||
<li><a href="compiling.html">Compiling Guide</a></li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
<li><a href="history.html" class="active">Version History</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Tutorials</h3>
|
||||
<ul>
|
||||
<!--
|
||||
<li><a href="">Choosing and Adding Pieces</a></li>
|
||||
<li><a href="">Moving and Rotating Pieces</a></li>
|
||||
<li><a href="camera.html">Camera and Viewport</a></li>
|
||||
<li><a href="">Models</a></li>
|
||||
<li><a href="">Flexible Parts</a></li>
|
||||
Keyframing
|
||||
POV-Ray
|
||||
-->
|
||||
<li><a href="tutorial1.html">Basic Tutorial</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- <li><a href="">Coordinate System</a></li>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Reference</h3>
|
||||
<ul>
|
||||
<li><a href="">Meta Commands</a></li>
|
||||
<li><a href="">Configuration Shortcuts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<!-- docbar end -->
|
||||
|
||||
<div class="inner-content">
|
||||
|
||||
<h2>Version History</h2>
|
||||
<p>
|
||||
Version 0.83.1 (13/8/2016)
|
||||
</p>
|
||||
<ul><li>Search the current path for submodels when opening files.
|
||||
</li><li>Optimizations for loading very large models.
|
||||
</li><li>Added option to control which models to export to HTML.
|
||||
</li><li>Fixed incorrectly localized numbers.
|
||||
</li><li>Fixed the position of rotated objects in the properties pane.
|
||||
</li><li>Fixed HTML export of models with only 1 step.
|
||||
</li><li>Fixed context menu not showing in some cases.
|
||||
</li><li>Fixed loading flex pieces without control points.
|
||||
</li><li>Fixed loading pieces with more than 64k verts.
|
||||
</li><li>Fixed Minifig Wizard crash.
|
||||
</li></ul><p>
|
||||
Version 0.83 (14/5/2016)
|
||||
</p>
|
||||
<ul><li>Added support for dynamically generated parts (Technic Ribbed Hoses, Flexible Axles, Braided Strings and Shock Absorbers).
|
||||
</li><li>Added option for specifying the pivot point of a piece (Drag the movement arrows with the Right Mouse Button).
|
||||
</li><li>Submodels now open in a separate tab on the main window.
|
||||
</li><li>Configurable mouse shortcuts.
|
||||
</li><li>Added more context menu options.
|
||||
</li><li>Allow changing multiple pieces at the same time using the properties widget.
|
||||
</li><li>Better piece rotation.
|
||||
</li></ul><p>
|
||||
Version 0.82.2 (14/11/2015)
|
||||
</p>
|
||||
<ul><li>Added Portuguese and French translations.
|
||||
</li><li>Added new toolbar and menu icons.
|
||||
</li><li>Mouse buttons 4 and 5 can now be used for navigating steps.
|
||||
</li><li>Added total parts to the Properties Dialog.
|
||||
</li><li>Fixed POV-Ray command line.
|
||||
</li><li>Fixed Timeline not updating correctly in some cases.
|
||||
</li></ul><p>
|
||||
Version 0.82.1 (12/4/2015)
|
||||
</p>
|
||||
<ul><li>Fixed crash on startup if a toolbar was floating when the application was closed.
|
||||
</li></ul><p>
|
||||
Version 0.82 (4/4/2015)
|
||||
</p>
|
||||
<ul><li>Added Timeline toolbar to show what parts were added at each step.
|
||||
</li><li>Added support for drawing triangles and lines in model files.
|
||||
</li><li>Preserve original file comments when saving.
|
||||
</li><li>Added Wavefront and 3DS export command line options.
|
||||
</li><li>Rendering optimizations.
|
||||
</li><li>Better pan tool sensitivity.
|
||||
</li><li>Improved zoom extents and zoom region.
|
||||
</li><li>Fixed MPD loading bugs.
|
||||
</li><li>Fixed Minifig Wizard crash.
|
||||
</li><li>Fixed waist accessory selection in the Minifig Wizard.
|
||||
</li><li>Fixed saving images from the command line.
|
||||
</li><li>Fixed mouse wheel in Qt5.
|
||||
</li><li>Fixed line width not being set for edge lines.
|
||||
</li><li>Fixed option to disable drawing lines.
|
||||
</li><li>Fixed steps and keyframes not saving correctly.
|
||||
</li></ul><p>
|
||||
Version 0.81 (18/1/2015)
|
||||
</p>
|
||||
<ul><li>Added support for multiple models and including submodels in the main model.
|
||||
</li><li>Changed save file format to ldr/mpd (loading lcd is still supported).
|
||||
</li><li>Added support for loading models that with pieces that are scaled or mirrored.
|
||||
</li><li>Added support for loading ldrawunf.zip, just place it in the same folder that the library is.
|
||||
</li><li>Added toolbar button for toggling relative transformation mode.
|
||||
</li><li>Added support for more than 255 steps in a model.
|
||||
</li><li>Improved movement and rotation of pieces.
|
||||
</li><li>Added more pieces to the built-in library.
|
||||
</li><li>Fixed crash when adding pieces with very long descriptions.
|
||||
</li></ul><p>
|
||||
Version 0.80.4 (6/4/2014)
|
||||
</p>
|
||||
<ul><li>Correct fix for OSX retina displays.
|
||||
</li></ul><p>
|
||||
Version 0.80.3 (5/4/2014)
|
||||
</p>
|
||||
<ul><li>Fixed mouse coordinates in OSX retina displays.
|
||||
</li><li>Fixed shortcuts in the parts tree.
|
||||
</li></ul><p>
|
||||
Version 0.80.2 (25/1/2014)
|
||||
</p>
|
||||
<ul><li>Added Look At command.
|
||||
</li><li>Added orthographic projection option.
|
||||
</li><li>Added editing of group names from the Edit Group Dialog.
|
||||
</li><li>Fixed wrong transform of some pieces when importing nested LDraw files.
|
||||
</li><li>Fixed printing and saving images on certain Intel video cards.
|
||||
</li><li>Fixed grid studs being enabled by grid lines option.
|
||||
</li><li>Fixed piece arrows not being drawn if the axis icon is enabled.
|
||||
</li><li>Preserve groups when merging.
|
||||
</li></ul><p>
|
||||
Version 0.80.1 (2/9/2013)
|
||||
</p>
|
||||
<ul><li>Added option to draw studs on the base grid.
|
||||
</li><li>Added option to ignore a new version when checking for updates.
|
||||
</li><li>Fixed 3DS export bugs.
|
||||
</li><li>Fixed loading mpd files with spaces in the name.
|
||||
</li><li>Fixed Used Parts List column mismatch.
|
||||
</li><li>Fixed find command getting disabled incorrectly.
|
||||
</li><li>Fixed bug restoring window position when maximized.
|
||||
</li><li>Fixed calling POV-Ray to render files.
|
||||
</li></ul><p>
|
||||
Version 0.80 (13/8/2013)
|
||||
</p>
|
||||
<ul><li>Switched user interface to Qt on all platforms.
|
||||
</li><li>Added native Mac OS X version.
|
||||
</li><li>Added dialog to search for specific parts in the current model.
|
||||
</li><li>Added option to export used parts in CSV format.
|
||||
</li><li>Save crash dump on Windows.
|
||||
</li><li>Fixed some parts being rendered incorrectly.
|
||||
</li><li>Fixed crash on Windows computers with the policy to disable recent menu files.
|
||||
</li></ul><p>
|
||||
Version 0.79.3 (6/3/2013)
|
||||
</p>
|
||||
<ul><li>Improved camera rotation.
|
||||
</li><li>Renamed default view positions.
|
||||
</li><li>Added option to print Bill of Materials for a model.
|
||||
</li><li>Added a small built-in parts library in case a real one is not available.
|
||||
</li><li>Added export to Brick Link.
|
||||
</li><li>Added option to display piece ID and select the piece color to the HTML exporter.
|
||||
</li><li>Added drag and drop support from piece list on Linux.
|
||||
</li><li>Added middle mouse button and mouse wheel support on Linux.
|
||||
</li><li>Added camera rotate and zoom to the Minifig Wizard preview.
|
||||
</li><li>Fixed 3ds export colors.
|
||||
</li></ul><p>
|
||||
Version 0.79.2 (21/1/2013)
|
||||
</p>
|
||||
<ul><li>Fixed rendering problems on computers with a decimal point other than a dot.
|
||||
</li><li>Fixed wrong pieces being selected after dragging a new piece from the piece list.
|
||||
</li><li>Better Linux desktop integration.
|
||||
</li></ul><p>
|
||||
Version 0.79.1 (2/1/2013)
|
||||
</p>
|
||||
<ul><li>Fixed rendering glitch with some translucent pieces.
|
||||
</li><li>Don't change view during undo or redo.
|
||||
</li><li>Fixed crash changing directories in the Linux file dialog.
|
||||
</li><li>Fixed bug loading textures from zip files.
|
||||
</li><li>Read parts.lst when using a library folder directly.
|
||||
</li></ul><p>
|
||||
Version 0.79 (13/12/2012)
|
||||
</p>
|
||||
<ul><li>Switched to a new library file format.
|
||||
</li><li>Added support for texture mapped pieces.
|
||||
</li><li>Added support for using the LDraw library directly.
|
||||
</li><li>Load color config from ldconfig.ldr where the library is located.
|
||||
</li><li>Save view layout between sessions.
|
||||
</li><li>Allow the pieces search text box to auto-complete when entering piece numbers.
|
||||
</li><li>Fixed errors on big endian computers.
|
||||
</li><li>Zoom extents after loading a file.
|
||||
</li></ul><p>
|
||||
Version 0.78.1 (21/09/2012)
|
||||
</p>
|
||||
<ul><li>Fixed crash loading files with pieces not in the library.
|
||||
</li><li>Fixed Linux Properties Dialog crash.
|
||||
</li><li>Fixed wrong stud radius.
|
||||
</li><li>Added message about unsaved shortcut changes.
|
||||
</li></ul><p>
|
||||
Version 0.78 (14/08/2012)
|
||||
</p>
|
||||
<ul><li>New mouse overlay when in selection mode.
|
||||
</li><li>Added transform entries to the toolbar.
|
||||
</li><li>Added option to keep adding pieces with the mouse if the control key is pressed.
|
||||
</li><li>Added support for new minifig accessory categories.
|
||||
</li><li>Added MSAA support.
|
||||
</li><li>Fixed 3DS export colors.
|
||||
</li><li>Fixed mouse detection over the move overlay.
|
||||
</li><li>Fixed bug rotating multiple pieces.
|
||||
</li></ul><p>
|
||||
Version 0.77 (05/07/2012)
|
||||
</p>
|
||||
<ul><li>Added new colors.
|
||||
</li><li>Faster rendering on video cards that support Vertex Buffer Objects.
|
||||
</li><li>Fixed bug exporting certain Wavefront files.
|
||||
</li><li>Fixed instructions printing not centering correctly.
|
||||
</li><li>Fixed bug where translucent pieces at the same position could cause a crash.
|
||||
</li><li>Fixed shortcuts conflict with the Properties Pane.
|
||||
</li><li>Updated Minifig Wizard settings.
|
||||
</li></ul><p>
|
||||
Version 0.76.2 (07/04/2012)
|
||||
</p>
|
||||
<ul><li>Added command line option to create Pieces Library.
|
||||
</li><li>Fixed bug exporting Wavefront files.
|
||||
</li><li>Fixed bugs importing pieces.
|
||||
</li></ul><p>
|
||||
Version 0.76.1 (05/04/2012)
|
||||
</p>
|
||||
<ul><li>Fixed bug where piece categories would not expand on some computers.
|
||||
</li></ul><p>
|
||||
Version 0.76 (18/03/2012)
|
||||
</p>
|
||||
<ul><li>Updated Windows interface to a more modern style.
|
||||
</li><li>Updated Linux dialogs and interface.
|
||||
</li><li>Views can now be dynamically created and resized.
|
||||
</li><li>Added shortcut to quickly pan/zoom/rotate while holding the control key down and pressing the L/M/R mouse buttons.
|
||||
</li><li>Replaced the Modify toolbar with the Properties bar.
|
||||
</li><li>Updated POV-Ray export to support the current LGEO library.
|
||||
</li><li>Added Import Folder option to the Pieces Library Manager.
|
||||
</li><li>Better color conversion when importing pieces.
|
||||
</li><li>Insert placeholder pieces when loading files with pieces not in the library so they are not deleted when saving.
|
||||
</li><li>Changed position units to match LDraw.
|
||||
</li><li>Fixed bug where 3DS objects were not exported as double sided.
|
||||
</li><li>Fixed decimal separator when saving text files on computers with certain language settings.
|
||||
</li><li>Fixed stud rendering bug in pieces with a large number of vertices.
|
||||
</li></ul><p>
|
||||
Version 0.75.2 (17/06/2011)
|
||||
</p>
|
||||
<ul><li>Added support for pieces with names longer than 8 characters.
|
||||
</li></ul><p>
|
||||
Version 0.75.1 (11/07/2010)
|
||||
</p>
|
||||
<ul><li>Minifig Wizard can now read its settings from a config file.
|
||||
</li></ul><p>
|
||||
Version 0.75 (31/03/2006)
|
||||
</p>
|
||||
<ul><li>Added rubber band selection (drag the mouse to select pieces inside a given region).
|
||||
</li><li>Added the ability to rotate the piece preview camera.
|
||||
</li><li>Added independent XY and Z snap values.
|
||||
</li><li>Added an overlay for helping rotate the camera.
|
||||
</li><li>Added an option to check for new versions at startup.
|
||||
</li><li>Added drag and drop of pieces from the Pieces Toolbar to the project.
|
||||
</li><li>New pieces are added at the same pos/orientation as the currently selected one.
|
||||
</li><li>When adding new pieces with the mouse their position is now previewed before inserting.
|
||||
</li><li>Changed piece movement to be relative to the currently selected piece by default.
|
||||
</li><li>Replaced the piece groups with a category tree in the Pieces Toolbar.
|
||||
</li><li>Fixed a bug that was causing some pieces to be incorrectly rotated after importing an LDraw file.
|
||||
</li><li>Pressing the delete key while in the pieces search window no longer deletes pieces in the project.
|
||||
</li><li>The size of the pieces toolbar will now be remembered when you restart the program.
|
||||
</li></ul><p>
|
||||
Version 0.74 (18/02/2005)
|
||||
</p>
|
||||
<ul><li>Fixed rotation bug.
|
||||
</li><li>Added icons to help moving/rotating pieces with the mouse.
|
||||
</li><li>Added support for custom user shortcut keys.
|
||||
</li><li>Added support to Big Endian computers (Linux PPC).
|
||||
</li><li>Added new pieces to the Minifig Wizard.
|
||||
</li><li>Added commands to insert and delete steps when creating instructions.
|
||||
</li><li>Fixed a bug that would cause pieces to disappear when rotating them.
|
||||
</li><li>Fixed some bugs in the 3DS exporter.
|
||||
</li><li>Fixed a crash loading files in computers configured to use different decimal separators.
|
||||
</li><li>Fixed a crash with the Zoom Extents command.
|
||||
</li><li>Fixed a crash loading very big pieces.
|
||||
</li></ul><p>
|
||||
Version 0.73 (18/12/2000)
|
||||
</p>
|
||||
<ul><li>Fixed rotation bug.
|
||||
</li><li>Fixed a bug when you insert a piece after a rotated piece wouldn't show the new piece correctly.
|
||||
</li><li>Fixed Z buffer bug in the piece preview.
|
||||
</li><li>Fixed blending in piece preview.
|
||||
</li><li>Fixed bug when exporting POV-Ray files using LGEO.
|
||||
</li><li>Fixed small bug in the texture font.
|
||||
</li><li>Fixed startup crash under win2k.
|
||||
</li><li>Adding rotation angles to each minifig wizard option.
|
||||
</li><li>Added an option to save custom minifigs to the Minifig Wizard.
|
||||
</li><li>Added new minifig pieces to the minifig wizard.
|
||||
</li><li>Added Save Picture dialog to the Linux version.
|
||||
</li><li>Added an overwrite prompt when saving a project under Linux.
|
||||
</li><li>Added project loading preview to the Linux version.
|
||||
</li><li>The Pieces toolbar can now be resized when docked or detached from the main window (Linux).
|
||||
</li><li>Fixed animation playback under Linux.
|
||||
</li><li>Fixed the numeric keypad under Linux.
|
||||
</li><li>Fixed problem with "focus follow mouse" in X.
|
||||
</li><li>Updated the Linux Array dialog.
|
||||
</li><li>Enabled the "Make Default" button of the preferences dialog (Linux).
|
||||
</li><li>Save window position and size under Linux.
|
||||
</li><li>The toolbar menu now has the checkboxes correct (Linux).
|
||||
</li><li>Remember toolbar state between sessions (Linux).
|
||||
</li><li>Added Linux man page.
|
||||
</li></ul><p>
|
||||
Version 0.71 (9/19/99)
|
||||
</p>
|
||||
<ul><li>Rendering is 30% faster in some 3D video cards
|
||||
</li><li>New way of moving objects with the mouse
|
||||
</li><li>Double click now selects the object under the cursor
|
||||
</li><li>Pasted pieces are selected now
|
||||
</li><li>Fixed a bug loading groups from old files
|
||||
</li><li>Fixed a bug in the .obj export code
|
||||
</li><li>Several small bugs fixed
|
||||
</li></ul><p>
|
||||
Version 0.70 (8/20/99)
|
||||
</p>
|
||||
<ul><li>First Linux version
|
||||
</li><li>Added new command line options
|
||||
</li><li>You can now work with multiple clipboards
|
||||
</li><li>Added 2 buttons to move pieces to the next/previous step
|
||||
</li><li>It’s now possible to have infinite groups depth
|
||||
</li><li>You can now specify a default path for .lcd files
|
||||
</li><li>Added a dialog to edit the piece groups
|
||||
</li><li>Added support for saving interlaced GIFs
|
||||
</li><li>Removed the spaces from the color names in .obj files
|
||||
</li><li>Fixed a bug reading compressed .bmp files
|
||||
</li><li>Fixed a bug choosing the image format when saving html pages
|
||||
</li><li>Groups are now pasted correctly
|
||||
</li><li>Fixed a bug with the file/merge command
|
||||
</li></ul><p>
|
||||
Version 0.66 (5/27/99)
|
||||
</p>
|
||||
<ul><li>Fixed a bug in the piece preview window
|
||||
</li><li>Fixed a bug in the Array dialog
|
||||
</li><li>Arrays created from groups of pieces are now rotated correctly
|
||||
</li></ul><p>
|
||||
Version 0.65 (4/26/99)
|
||||
</p>
|
||||
<ul><li>Added a reset cameras command
|
||||
</li><li>Changed the transparency to alpha blending
|
||||
</li><li>Changed the print preview toolbar
|
||||
</li><li>Fixed a bug in the minifig wizard
|
||||
</li><li>Fixed a bug when loading some files
|
||||
</li><li>Fixed a copy & paste bug
|
||||
</li><li>Fixed the delete camera command
|
||||
</li><li>Fixed a bug running POV-Ray
|
||||
</li><li>Fixed a bug creating HTML instructions
|
||||
</li></ul><p>
|
||||
Version 0.64 (3/27/99)
|
||||
</p>
|
||||
<ul><li>Added a terrain editor
|
||||
</li><li>Added a completely new POV-Ray export function
|
||||
</li><li>Added 3DS and OBJ color export
|
||||
</li><li>Added a menu to set the snap spacing from the status bar
|
||||
</li><li>Fixed a bug changing the tabs in the Preferences dialog
|
||||
</li><li>Fixed a bug loading/saving piece groups
|
||||
</li><li>Fixed a bug with the name of pasted pieces
|
||||
</li><li>Fixed the option to set the size of the base grid
|
||||
</li></ul><p>
|
||||
Version 0.63 (2/12/99)
|
||||
</p>
|
||||
<ul><li>Redone the background rendering routines
|
||||
</li><li>Exporting to HTML can now create pictures of the pieces used
|
||||
</li><li>Added an option to update the Piece Library
|
||||
</li><li>Fixed a bug importing LDraw files
|
||||
</li><li>Fixed a bug with the Print Preview
|
||||
</li><li>Fixed a bug running L2P
|
||||
</li></ul><p>
|
||||
Version 0.62 (1/21/99)
|
||||
</p>
|
||||
<ul><li>Added functions to export files to Wavefront & 3DS (no colors yet)
|
||||
</li><li>Added an option to draw a floor & sky
|
||||
</li><li>Added tooltips for the toolbar buttons
|
||||
</li><li>Added an option to highlight new pieces when creating HTML files
|
||||
</li><li>Fixed a bug with the minifig wizard
|
||||
</li><li>Fixed a bug loading the program on some computers
|
||||
</li><li>The title bar now correctly shows the name of the file loaded
|
||||
</li></ul><p>
|
||||
Version 0.61 (1/13/98)
|
||||
</p>
|
||||
<ul><li>About 40% speed increase
|
||||
</li><li>Accurate selection of pieces
|
||||
</li><li>Improved AutoPan/MouseWheel support
|
||||
</li><li>Autosave re-enabled
|
||||
</li><li>Basic animation support
|
||||
</li><li>Fixed some bugs loading old files
|
||||
</li></ul><p>
|
||||
Version 0.60 (12/24/98)
|
||||
</p>
|
||||
<ul><li>Rewrote the program, too many changes to list
|
||||
</li></ul><p>
|
||||
Version 0.54 (08/25/98)
|
||||
</p>
|
||||
<ul><li>Added an option to save transparent GIFs
|
||||
</li><li>Added an option to show the piece position on the status bar
|
||||
</li><li>Added an auto-save feature
|
||||
</li><li>Added an option to use "Brick" units instead of centimeters
|
||||
</li><li>Improved the way the program draw the lines
|
||||
</li><li>Pressing CTRL while the rotate tool is selected changes temporarily to pan (and vice-versa)
|
||||
</li><li>Fixed a bug that prevented the Infobar from floating
|
||||
</li><li>Fixed a bug with the print preview
|
||||
</li><li>Fixed a bug with the color selector on some video cards
|
||||
</li><li>When a new piece is inserted, it is now placed above the previously selected one
|
||||
</li><li>Changed some more colors (now black is a very dark grey and the edge lines are black)
|
||||
</li></ul><p>
|
||||
Version 0.53 (07/31/98)
|
||||
</p>
|
||||
<ul><li>Added an option to preview the position of new pieces
|
||||
</li><li>Added a function to print a list of pieces used
|
||||
</li><li>Fixed a bug with 256 colors displays
|
||||
</li><li>You can now select cameras with the mouse
|
||||
</li><li>Improved the zoom rectangle tool
|
||||
</li><li>The groups toolbar is now updated when you add/remove a new group
|
||||
</li><li>Changed some colors a little bit
|
||||
</li></ul><p>
|
||||
Version 0.52 (07/17/98)
|
||||
</p>
|
||||
<ul><li>Added new colors
|
||||
</li><li>Added a function to import a single LDraw piece into the library
|
||||
</li><li>Improved the minifig wizard
|
||||
</li><li>Tuned up the application to use less memory (about 6MB less)
|
||||
</li><li>Removed the shaded caption bar (Windows 98 will do it)
|
||||
</li><li>Changed the format of the piece library
|
||||
</li><li>Fixed some minor bugs
|
||||
</li></ul><p>
|
||||
Version 0.51a (06/25/98)
|
||||
</p>
|
||||
<ul><li>Fixed a bug with the LDraw import and export routines
|
||||
</li><li>Fixed a bug with the print catalog command on high resolution printers
|
||||
</li><li>It’s now possible to set the size of the preview window on the pieces toolbar
|
||||
</li></ul><p>
|
||||
Version 0.51 (06/16/98)
|
||||
</p>
|
||||
<ul><li>Rotations of more than 1 brick are now correct
|
||||
</li><li>Fixed a bug with the piece preview palette on 256 colors
|
||||
</li><li>Fixed another bug with the 'Save toolbar position' option
|
||||
</li><li>LeoCAD now remembers the 'view part number' settings
|
||||
</li><li>Background/Fast Rendering options are saved with the projects
|
||||
</li><li>Added an option to save a preview of the project files
|
||||
</li><li>Added an option to print a header & footer
|
||||
</li><li>Added an option to set print margins
|
||||
</li><li>Added a print setup tab on the preferences dialog
|
||||
</li><li>Added: save GIF files
|
||||
</li><li>Added: save 256 colors BMP files
|
||||
</li><li>Added: save progressive JPG files
|
||||
</li><li>Added a button to browse for background images
|
||||
</li><li>It's possible to use GIF files as background
|
||||
</li><li>Moved the 'Save Picture' command to the 'Save As' dialog
|
||||
</li><li>Moved the 'Import LDraw' command to the 'Open' dialog
|
||||
</li></ul><p>
|
||||
Version 0.50a
|
||||
</p>
|
||||
<ul><li>Added an option to print with lower quality (using less memory)
|
||||
</li><li>Fixed a bug closing the print preview
|
||||
</li></ul><p>
|
||||
Version 0.50
|
||||
</p>
|
||||
<ul><li>Added a function to export files to POV-Ray (using LGEO)
|
||||
</li><li>Added a function to check for new versions
|
||||
</li><li>Added a function to print all pieces on the library
|
||||
</li><li>Added a function to send a project by e-mail
|
||||
</li><li>Added a function to save a sequence of pictures (to create a QTVR object)
|
||||
</li><li>Added an option to choose how many steps per page are printed
|
||||
</li><li>Added an option to draw a border around each step printed
|
||||
</li><li>Changed the ‘3D Snap’ button on the toolbar to display a menu
|
||||
</li><li>Fixed a bug saving the toolbars position
|
||||
</li><li>Fixed a bug with the selection of bricks with multiple viewports enabled
|
||||
</li></ul><p>
|
||||
Version 0.49
|
||||
</p>
|
||||
<ul><li>Added an option to save JPG files
|
||||
</li><li>Added an option to use a JPG file as background
|
||||
</li><li>Added tooltips for the color list
|
||||
</li><li>Added a 'total' field to the 'Pieces Used' list
|
||||
</li><li>Added a command to create HTML instructions
|
||||
</li><li>Added new movement modes keyframer/snapshot
|
||||
</li><li>Fixed/Added some options to the interface
|
||||
</li><li>Fixed the camera submenu
|
||||
</li><li>Fixed a bug that would crash the program while rendering in the background
|
||||
</li></ul><p>
|
||||
Version 0.48
|
||||
</p>
|
||||
<ul><li>Added an option to remove a brick after a chosen step
|
||||
</li><li>Added an option to draw the studs as boxes
|
||||
</li><li>Added a dialog to create minifigs
|
||||
</li><li>Added an option to set the mouse sensitivity
|
||||
</li><li>Added an ‘Apply’ button to the ‘Step’ and ‘Camera’ dialog
|
||||
</li><li>The ‘Camera’ dialog now gets correctly updated
|
||||
</li><li>The info bar now shows the rotations and get updated correctly
|
||||
</li><li>Better LDraw import
|
||||
</li><li>Fixed a bug with the print preview in full screen mode
|
||||
</li><li>No more duplicate names on the brick combobox
|
||||
</li><li>The brick bar now shows the popups when you right click on almost any place
|
||||
</li></ul><p>
|
||||
Version 0.47
|
||||
</p>
|
||||
<ul><li>Fixed a bug that would crash LeoCAD on some computers
|
||||
</li></ul><p>
|
||||
Version 0.46
|
||||
</p>
|
||||
<ul><li>New color list
|
||||
</li><li>The keyboard keys now move/rotate on the direction of the screen
|
||||
</li><li>Numeric keypad now works correctly
|
||||
</li><li>It is possible to group the parts and keep the brick combobox
|
||||
</li><li>Fixed some problems with the save bitmap dialog
|
||||
</li><li>Fixed a bug that wouldn’t change the preferences on the second thread
|
||||
</li><li>When the program is not active, it will redraw the window faster
|
||||
</li><li>No more ‘~Moved to’ parts on the list of used pieces
|
||||
</li></ul><p>
|
||||
Version 0.45
|
||||
</p>
|
||||
<ul><li>Added a button to save default options for new projects
|
||||
</li><li>Added a dialog to modify a brick
|
||||
</li><li>Added an option do remove the hidden lines on the fast rendering
|
||||
</li><li>Added an option to draw filled boxes instead of only the edges
|
||||
</li><li>Added some options to hide the camera ‘boxes’
|
||||
</li><li>Faster grid
|
||||
</li><li>Faster rendering
|
||||
</li><li>Zoom extents all viewports (hold control and press the icon on the toolbar)
|
||||
</li><li>Changed a little bit the right button popups
|
||||
</li><li>Completely rewrote the Part Library Manager
|
||||
</li><li>Added a command to import Ldraw parts from a directory
|
||||
</li></ul><p>
|
||||
Version 0.44
|
||||
</p>
|
||||
<ul><li>Now LeoCAD saves the fog/background bitmap options of every project
|
||||
</li><li>Some more popup menu options
|
||||
</li></ul><p>
|
||||
Version 0.43
|
||||
</p>
|
||||
<ul><li>Fog effect
|
||||
</li><li>Load the background from a bitmap file
|
||||
</li><li>Option to save the toolbars position enabled
|
||||
</li><li>Menus with icons
|
||||
</li><li>LDraw models are now imported with the current color of the combobox
|
||||
</li><li>Better axis icon
|
||||
</li><li>Bricks are now pasted on the current step
|
||||
</li><li>Bricks that were grouped when copied to the clipboard are pasted correctly
|
||||
</li><li>Now correctly works with the ‘file/new LeoCAD project’ from windows explorer
|
||||
</li><li>Fixed a bug that would show a GPF sometimes when exiting the program
|
||||
</li></ul><p>
|
||||
Version 0.42
|
||||
</p>
|
||||
<ul><li>Multiple viewports
|
||||
</li><li>New parts are now inserted above the last part if you use the keyboard
|
||||
</li><li>Zoom extents will not freeze LeoCAD anymore
|
||||
</li><li>Fixed bugs on some old parts
|
||||
</li><li>Added 52 new parts
|
||||
</li></ul><p>
|
||||
Version 0.41
|
||||
</p>
|
||||
<ul><li>LeoCAD is now multithreaded
|
||||
</li><li>Added 45 new parts
|
||||
</li><li>Added new clear colors
|
||||
</li><li>Added a command to ‘hide’ bricks
|
||||
</li><li>Added shortcuts to the predefined views
|
||||
</li><li>Added shortcuts to zoom function (-/+ keys)
|
||||
</li><li>Added an icon that shows the axis orientation
|
||||
</li><li>Added a dialog to change the current step
|
||||
</li><li>Added an option to disable movement on certain axis
|
||||
</li><li>Added a dialog to enter names for the groups of bricks
|
||||
</li><li>Added a command to create ‘arrays’ of bricks
|
||||
</li><li>Added commands to select all/invert/by name/none bricks
|
||||
</li><li>Added an option to make the default action not move after inserting a part
|
||||
</li><li>Added warnings if there are old DLLs installed
|
||||
</li><li>Added tooltips for the parts list
|
||||
</li><li>Changed the toolbars
|
||||
</li><li>Changed the viewpoint dialog
|
||||
</li><li>Fixed a bug with the zoom extents
|
||||
</li><li>Fixed a bug with the paste command
|
||||
</li><li>Fixed a bug with the file version warning
|
||||
</li><li>Fixed a bug when changing the step of multiple bricks
|
||||
</li><li>Fixed some bugs with menu items not being correctly disabled
|
||||
</li></ul>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- footer start -->
|
||||
<footer class="wrap"><div class="right"> © LeoCAD.org </div></footer>
|
||||
<!-- footer end -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
111
docs/library.html
Normal file
|
@ -0,0 +1,111 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<title>Parts Library | LeoCAD</title>
|
||||
<link rel="stylesheet" href="../main.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
<!-- navbar start -->
|
||||
<div class="nav-main">
|
||||
<div class="wrap">
|
||||
<a class="nav-home" href="../index.html"><img class="nav-logo" src="../leocad-32.png" width="32" height="32"> LeoCAD </a>
|
||||
<ul class="nav-site nav-site-internal">
|
||||
<li><a href="../download.html">Download</a></li>
|
||||
<li><a href="start.html" class="active">Documentation</a></li>
|
||||
<!-- <li><a href="../help.html">Help</a></li> -->
|
||||
</ul>
|
||||
<ul class="nav-site nav-site-external">
|
||||
<li><a href="https://github.com/leozide/leocad">GitHub</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- navbar end -->
|
||||
|
||||
<section class="content wrap documentationContent">
|
||||
|
||||
<!-- docbar start -->
|
||||
<div class="nav-docs">
|
||||
<div class="nav-docs-section">
|
||||
<h3>General Information</h3>
|
||||
<ul>
|
||||
<li><a href="start.html">Getting Started</a></li>
|
||||
<li><a href="library.html" class="active">Parts Library</a></li>
|
||||
<li><a href="compiling.html">Compiling Guide</a></li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
<li><a href="history.html">Version History</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Tutorials</h3>
|
||||
<ul>
|
||||
<!--
|
||||
<li><a href="">Choosing and Adding Pieces</a></li>
|
||||
<li><a href="">Moving and Rotating Pieces</a></li>
|
||||
<li><a href="camera.html">Camera and Viewport</a></li>
|
||||
<li><a href="">Models</a></li>
|
||||
<li><a href="">Flexible Parts</a></li>
|
||||
Keyframing
|
||||
POV-Ray
|
||||
-->
|
||||
<li><a href="tutorial1.html">Basic Tutorial</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- <li><a href="">Coordinate System</a></li>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Reference</h3>
|
||||
<ul>
|
||||
<li><a href="">Meta Commands</a></li>
|
||||
<li><a href="">Configuration Shortcuts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<!-- docbar end -->
|
||||
|
||||
<div class="inner-content">
|
||||
|
||||
<h2>Parts Library</h2>
|
||||
<p>LeoCAD is completely compatible with LDraw's Parts Library. In fact, the library included in the installer packages is just a zip archive of LDraw's library without any changes.</p>
|
||||
<p>This is done mostly to simplify things so new users don't need to download and install a separate file or worry about updating their library. Many LeoCAD users are young people without a lot of computer experience so the setup process is kept as simple as possible.</p>
|
||||
<p>At the same time, there are experienced users who like to maintain their own libraries with unofficial parts that they create or download from the internet. Those people can still use their LDraw library with LeoCAD, all they need to do is tell LeoCAD where to find it.</p>
|
||||
<p>Note that there is a performance advantage for using a zip file for the library, the application will take less time to start and models will load faster.</p>
|
||||
|
||||
<h2>Using a Custom Parts Library</h2>
|
||||
<p>There are several ways to specify a custom library folder or file (in order of priority):</p>
|
||||
<ul>
|
||||
<li>Use the -l command line option followed by the library path</li>
|
||||
<li>Set the LEOCAD_LIB environment variable</li>
|
||||
<li>Enter a new library path in the Preferences Dialog</li>
|
||||
</ul>
|
||||
<p>Note that LeoCAD can use either a zip file or a regular folder for its library. Here are some examples:</p>
|
||||
<div class="highlight"><code>
|
||||
$ leocad -l C:\LDraw\<br>
|
||||
$ set LEOCAD_LIB=C:\User\Downloads\complete.zip
|
||||
</code></div>
|
||||
|
||||
<h2>Unofficial Parts</h2>
|
||||
<p>You can easily use unnoficial LDraw parts with LeoCAD:</p>
|
||||
<p>If you're using LeoCAD's default library then you'll need to download the current unofficial parts from <a href="http://www.ldraw.org/library/unofficial/ldrawunf.zip">http://www.ldraw.org/library/unofficial/ldrawunf.zip</a>, place ldrawunf.zip in the same folder where library.bin is located and restart LeoCAD. The next time the application starts it will detect ldrawunf.zip and load it automatically.</p>
|
||||
<p>If you are using your own custom library with loose files then all you need to do is make sure you update or delete parts.lst and the parts should be visible next time you start LeoCAD.</p>
|
||||
|
||||
<h2>Default Library Path</h2>
|
||||
<p>The default library path is different for each OS:</p>
|
||||
<p>Windows: The application looks for library.bin in the same folder where LeoCAD.exe is located.</p>
|
||||
<p>Linux: This is set at compile time but it's usually either '/usr/share/leocad/library.bin' or '/usr/local/share/leocad/library.bin'.</p>
|
||||
<p>FreeBSD: The default is '/usr/local/share/leocad/library.bin'.</p>
|
||||
<p>Mac OSX: The 'library.bin' file in the Contents/Resources folder inside the application bundle.</p>
|
||||
<p>On Linux you can set the install path prefix at compile time by passing it to qmake:</p>
|
||||
<div class="highlight"><code>$ qmake INSTALL_PREFIX=/my/path<br></code></div>
|
||||
<p>This will change the default library path to /my/path/leocad/library.bin</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- footer start -->
|
||||
<footer class="wrap"><div class="right"> © LeoCAD.org </div></footer>
|
||||
<!-- footer end -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
675
docs/license.html
Normal file
|
@ -0,0 +1,675 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<title>License | LeoCAD</title>
|
||||
<link rel="stylesheet" href="../main.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
<!-- navbar start -->
|
||||
<div class="nav-main">
|
||||
<div class="wrap">
|
||||
<a class="nav-home" href="../index.html"><img class="nav-logo" src="../leocad-32.png" width="32" height="32"> LeoCAD </a>
|
||||
<ul class="nav-site nav-site-internal">
|
||||
<li><a href="../download.html">Download</a></li>
|
||||
<li><a href="start.html" class="active">Documentation</a></li>
|
||||
<!-- <li><a href="../help.html">Help</a></li> -->
|
||||
</ul>
|
||||
<ul class="nav-site nav-site-external">
|
||||
<li><a href="https://github.com/leozide/leocad">GitHub</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- navbar end -->
|
||||
|
||||
<section class="content wrap documentationContent">
|
||||
|
||||
<!-- docbar start -->
|
||||
<div class="nav-docs">
|
||||
<div class="nav-docs-section">
|
||||
<h3>General Information</h3>
|
||||
<ul>
|
||||
<li><a href="start.html">Getting Started</a></li>
|
||||
<li><a href="library.html">Parts Library</a></li>
|
||||
<li><a href="compiling.html">Compiling Guide</a></li>
|
||||
<li><a href="license.html" class="active">License</a></li>
|
||||
<li><a href="history.html">Version History</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Tutorials</h3>
|
||||
<ul>
|
||||
<!--
|
||||
<li><a href="">Choosing and Adding Pieces</a></li>
|
||||
<li><a href="">Moving and Rotating Pieces</a></li>
|
||||
<li><a href="camera.html">Camera and Viewport</a></li>
|
||||
<li><a href="">Models</a></li>
|
||||
<li><a href="">Flexible Parts</a></li>
|
||||
Keyframing
|
||||
POV-Ray
|
||||
-->
|
||||
<li><a href="tutorial1.html">Basic Tutorial</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- <li><a href="">Coordinate System</a></li>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Reference</h3>
|
||||
<ul>
|
||||
<li><a href="">Meta Commands</a></li>
|
||||
<li><a href="">Configuration Shortcuts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<!-- docbar end -->
|
||||
|
||||
<div class="inner-content">
|
||||
|
||||
<h2>License</h2>
|
||||
<p>LeoCAD is distributed under the GNU General Public License (GPL) version 2.</p>
|
||||
<p>The Parts Library used by LeoCAD is a copy of LDraw's Library, which is distributed under the LDraw License Agreement and based on the Creative Commons 2 License.</p>
|
||||
|
||||
<h2>Disclaimer</h2>
|
||||
<p>LEGO is a trademark of the LEGO Group of companies which does not sponsor, authorize or endorse this software.</p>
|
||||
|
||||
<h2>GNU General Public License version 2</h2>
|
||||
<div class="highlight"><code><pre>
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
||||
</pre></code></div>
|
||||
|
||||
<h2>Creative Commons License 2.0</h2>
|
||||
<div class="highlight"><code><pre>
|
||||
CREATIVE COMMONS
|
||||
LEGAL CODE
|
||||
Attribution 2.0
|
||||
|
||||
License
|
||||
|
||||
THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS
|
||||
CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS
|
||||
PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE
|
||||
WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS
|
||||
PROHIBITED.
|
||||
|
||||
BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND
|
||||
AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. THE LICENSOR GRANTS
|
||||
YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF
|
||||
SUCH TERMS AND CONDITIONS.
|
||||
|
||||
1. Definitions
|
||||
|
||||
1. "Collective Work" means a work, such as a periodical issue,
|
||||
anthology or encyclopedia, in which the Work in its entirety in
|
||||
unmodified form, along with a number of other contributions,
|
||||
constituting separate and independent works in themselves, are
|
||||
assembled into a collective whole. A work that constitutes a
|
||||
Collective Work will not be considered a Derivative Work (as
|
||||
defined below) for the purposes of this License.
|
||||
|
||||
2. "Derivative Work" means a work based upon the Work or upon the
|
||||
Work and other pre-existing works, such as a translation,
|
||||
musical arrangement, dramatization, fictionalization, motion
|
||||
picture version, sound recording, art reproduction, abridgment,
|
||||
condensation, or any other form in which the Work may be recast,
|
||||
transformed, or adapted, except that a work that constitutes a
|
||||
Collective Work will not be considered a Derivative Work for the
|
||||
purpose of this License. For the avoidance of doubt, where the
|
||||
Work is a musical composition or sound recording, the
|
||||
synchronization of the Work in timed-relation with a moving
|
||||
image ("synching") will be considered a Derivative Work for the
|
||||
purpose of this License.
|
||||
|
||||
3. "Licensor" means the individual or entity that offers the Work
|
||||
under the terms of this License.
|
||||
|
||||
4. "Original Author" means the individual or entity who created the
|
||||
Work.
|
||||
|
||||
5. "Work" means the copyrightable work of authorship offered under
|
||||
the terms of this License.
|
||||
|
||||
6. "You" means an individual or entity exercising rights under this
|
||||
License who has not previously violated the terms of this
|
||||
License with respect to the Work, or who has received express
|
||||
permission from the Licensor to exercise rights under this
|
||||
License despite a previous violation.
|
||||
|
||||
|
||||
2. Fair Use Rights. Nothing in this license is intended to reduce,
|
||||
limit, or restrict any rights arising from fair use, first sale or
|
||||
other limitations on the exclusive rights of the copyright owner
|
||||
under copyright law or other applicable laws.
|
||||
|
||||
3. License Grant. Subject to the terms and conditions of this License,
|
||||
Licensor hereby grants You a worldwide, royalty-free,
|
||||
non-exclusive, perpetual (for the duration of the applicable
|
||||
copyright) license to exercise the rights in the Work as stated
|
||||
below:
|
||||
|
||||
1. to reproduce the Work, to incorporate the Work into one or more
|
||||
Collective Works, and to reproduce the Work as incorporated in
|
||||
the Collective Works;
|
||||
|
||||
2. to create and reproduce Derivative Works;
|
||||
|
||||
3. to distribute copies or phonorecords of, display publicly,
|
||||
perform publicly, and perform publicly by means of a digital
|
||||
audio transmission the Work including as incorporated in
|
||||
Collective Works;
|
||||
|
||||
4. to distribute copies or phonorecords of, display publicly,
|
||||
perform publicly, and perform publicly by means of a digital
|
||||
audio transmission Derivative Works.
|
||||
|
||||
5. For the avoidance of doubt, where the work is a musical
|
||||
composition:
|
||||
|
||||
1. Performance Royalties Under Blanket Licenses. Licensor
|
||||
waives the exclusive right to collect, whether
|
||||
individually or via a performance rights society
|
||||
(e.g. ASCAP, BMI, SESAC), royalties for the public
|
||||
performance or public digital performance (e.g. webcast)
|
||||
of the Work.
|
||||
|
||||
2. Mechanical Rights and Statutory Royalties. Licensor waives
|
||||
the exclusive right to collect, whether individually or
|
||||
via a music rights agency or designated agent (e.g. Harry
|
||||
Fox Agency), royalties for any phonorecord You create from
|
||||
the Work ("cover version") and distribute, subject to the
|
||||
compulsory license created by 17 USC Section 115 of the US
|
||||
Copyright Act (or the equivalent in other jurisdictions).
|
||||
|
||||
6. Webcasting Rights and Statutory Royalties. For the avoidance of
|
||||
doubt, where the Work is a sound recording, Licensor waives the
|
||||
exclusive right to collect, whether individually or via a
|
||||
performance-rights society (e.g. SoundExchange), royalties for
|
||||
the public digital performance (e.g. webcast) of the Work,
|
||||
subject to the compulsory license created by 17 USC Section 114
|
||||
of the US Copyright Act (or the equivalent in other
|
||||
jurisdictions).
|
||||
|
||||
|
||||
The above rights may be exercised in all media and formats whether now
|
||||
known or hereafter devised. The above rights include the right to make
|
||||
such modifications as are technically necessary to exercise the rights
|
||||
in other media and formats. All rights not expressly granted by
|
||||
Licensor are hereby reserved.
|
||||
|
||||
4. Restrictions.The license granted in Section 3 above is expressly
|
||||
made subject to and limited by the following restrictions:
|
||||
|
||||
1. You may distribute, publicly display, publicly perform, or
|
||||
publicly digitally perform the Work only under the terms of this
|
||||
License, and You must include a copy of, or the Uniform Resource
|
||||
Identifier for, this License with every copy or phonorecord of
|
||||
the Work You distribute, publicly display, publicly perform, or
|
||||
publicly digitally perform. You may not offer or impose any
|
||||
terms on the Work that alter or restrict the terms of this
|
||||
License or the recipients' exercise of the rights granted
|
||||
hereunder. You may not sublicense the Work. You must keep intact
|
||||
all notices that refer to this License and to the disclaimer of
|
||||
warranties. You may not distribute, publicly display, publicly
|
||||
perform, or publicly digitally perform the Work with any
|
||||
technological measures that control access or use of the Work in
|
||||
a manner inconsistent with the terms of this License
|
||||
Agreement. The above applies to the Work as incorporated in a
|
||||
Collective Work, but this does not require the Collective Work
|
||||
apart from the Work itself to be made subject to the terms of
|
||||
this License. If You create a Collective Work, upon notice from
|
||||
any Licensor You must, to the extent practicable, remove from
|
||||
the Collective Work any reference to such Licensor or the
|
||||
Original Author, as requested. If You create a Derivative Work,
|
||||
upon notice from any Licensor You must, to the extent
|
||||
practicable, remove from the Derivative Work any reference to
|
||||
such Licensor or the Original Author, as requested.
|
||||
|
||||
2. If you distribute, publicly display, publicly perform, or
|
||||
publicly digitally perform the Work or any Derivative Works or
|
||||
Collective Works, You must keep intact all copyright notices for
|
||||
the Work and give the Original Author credit reasonable to the
|
||||
medium or means You are utilizing by conveying the name (or
|
||||
pseudonym if applicable) of the Original Author if supplied; the
|
||||
title of the Work if supplied; to the extent reasonably
|
||||
practicable, the Uniform Resource Identifier, if any, that
|
||||
Licensor specifies to be associated with the Work, unless such
|
||||
URI does not refer to the copyright notice or licensing
|
||||
information for the Work; and in the case of a Derivative Work,
|
||||
a credit identifying the use of the Work in the Derivative Work
|
||||
(e.g., "French translation of the Work by Original Author," or
|
||||
"Screenplay based on original Work by Original Author"). Such
|
||||
credit may be implemented in any reasonable manner; provided,
|
||||
however, that in the case of a Derivative Work or Collective
|
||||
Work, at a minimum such credit will appear where any other
|
||||
comparable authorship credit appears and in a manner at least as
|
||||
prominent as such other comparable authorship credit.
|
||||
|
||||
|
||||
5. Representations, Warranties and Disclaimer
|
||||
|
||||
UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING,
|
||||
LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR
|
||||
WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED,
|
||||
STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF
|
||||
TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE,
|
||||
NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY,
|
||||
OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT
|
||||
DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED
|
||||
WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
|
||||
|
||||
6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY
|
||||
APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY
|
||||
LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE
|
||||
OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE
|
||||
WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
7. Termination
|
||||
|
||||
1. This License and the rights granted hereunder will terminate
|
||||
automatically upon any breach by You of the terms of this
|
||||
License. Individuals or entities who have received Derivative
|
||||
Works or Collective Works from You under this License, however,
|
||||
will not have their licenses terminated provided such
|
||||
individuals or entities remain in full compliance with those
|
||||
licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any
|
||||
termination of this License.
|
||||
|
||||
2. Subject to the above terms and conditions, the license granted
|
||||
here is perpetual (for the duration of the applicable copyright
|
||||
in the Work). Notwithstanding the above, Licensor reserves the
|
||||
right to release the Work under different license terms or to
|
||||
stop distributing the Work at any time; provided, however that
|
||||
any such election will not serve to withdraw this License (or
|
||||
any other license that has been, or is required to be, granted
|
||||
under the terms of this License), and this License will continue
|
||||
in full force and effect unless terminated as stated above.
|
||||
|
||||
|
||||
8. Miscellaneous
|
||||
|
||||
1. Each time You distribute or publicly digitally perform the Work
|
||||
or a Collective Work, the Licensor offers to the recipient a
|
||||
license to the Work on the same terms and conditions as the
|
||||
license granted to You under this License.
|
||||
|
||||
2. Each time You distribute or publicly digitally perform a
|
||||
Derivative Work, Licensor offers to the recipient a license to
|
||||
the original Work on the same terms and conditions as the
|
||||
license granted to You under this License.
|
||||
|
||||
3. If any provision of this License is invalid or unenforceable
|
||||
under applicable law, it shall not affect the validity or
|
||||
enforceability of the remainder of the terms of this License,
|
||||
and without further action by the parties to this agreement,
|
||||
such provision shall be reformed to the minimum extent necessary
|
||||
to make such provision valid and enforceable.
|
||||
|
||||
4. No term or provision of this License shall be deemed waived and
|
||||
no breach consented to unless such waiver or consent shall be in
|
||||
writing and signed by the party to be charged with such waiver
|
||||
or consent.
|
||||
|
||||
5. This License constitutes the entire agreement between the
|
||||
parties with respect to the Work licensed here. There are no
|
||||
understandings, agreements or representations with respect to
|
||||
the Work not specified here. Licensor shall not be bound by any
|
||||
additional provisions that may appear in any communication from
|
||||
You. This License may not be modified without the mutual written
|
||||
agreement of the Licensor and You.
|
||||
|
||||
|
||||
|
||||
For the purposes of this license The Work is define as the LDraw Parts
|
||||
Library (and all parts within it) which have fall under the LDRaw
|
||||
Contributor Agreement. These parts may be identified by the appearance
|
||||
of the following line in their header as placed their by the LDraw
|
||||
Library Administrators or the Original Author.
|
||||
</pre></code></div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- footer start -->
|
||||
<footer class="wrap"><div class="right"> © LeoCAD.org </div></footer>
|
||||
<!-- footer end -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
81
docs/start.html
Normal file
|
@ -0,0 +1,81 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<title>Getting Started | LeoCAD</title>
|
||||
<link rel="stylesheet" href="../main.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
<!-- navbar start -->
|
||||
<div class="nav-main">
|
||||
<div class="wrap">
|
||||
<a class="nav-home" href="../index.html"><img class="nav-logo" src="../leocad-32.png" width="32" height="32"> LeoCAD </a>
|
||||
<ul class="nav-site nav-site-internal">
|
||||
<li><a href="../download.html">Download</a></li>
|
||||
<li><a href="start.html" class="active">Documentation</a></li>
|
||||
<!-- <li><a href="../help.html">Help</a></li> -->
|
||||
</ul>
|
||||
<ul class="nav-site nav-site-external">
|
||||
<li><a href="https://github.com/leozide/leocad">GitHub</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- navbar end -->
|
||||
|
||||
<section class="content wrap documentationContent">
|
||||
|
||||
<!-- docbar start -->
|
||||
<div class="nav-docs">
|
||||
<div class="nav-docs-section">
|
||||
<h3>General Information</h3>
|
||||
<ul>
|
||||
<li><a href="start.html" class="active">Getting Started</a></li>
|
||||
<li><a href="library.html">Parts Library</a></li>
|
||||
<li><a href="compiling.html">Compiling Guide</a></li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
<li><a href="history.html">Version History</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Tutorials</h3>
|
||||
<ul>
|
||||
<!--
|
||||
<li><a href="">Choosing and Adding Pieces</a></li>
|
||||
<li><a href="">Moving and Rotating Pieces</a></li>
|
||||
<li><a href="camera.html">Camera and Viewport</a></li>
|
||||
<li><a href="">Models</a></li>
|
||||
<li><a href="">Flexible Parts</a></li>
|
||||
Keyframing
|
||||
POV-Ray
|
||||
-->
|
||||
<li><a href="tutorial1.html">Basic Tutorial</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- <li><a href="">Coordinate System</a></li>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Reference</h3>
|
||||
<ul>
|
||||
<li><a href="">Meta Commands</a></li>
|
||||
<li><a href="">Configuration Shortcuts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<!-- docbar end -->
|
||||
|
||||
<div class="inner-content">
|
||||
<h2>Getting Started</h2>
|
||||
<p>If you haven't installed LeoCAD yet, visit the <a href="../download.html">Download Page</a> for information on how to get the latest version of LeoCAD installed on your computer.</p>
|
||||
<p>Once you're ready to start creating models take a look at the basic tutorial for a quick guide on how to create a simple model.</p>
|
||||
<p>The pages on the left will have information on more advanced topics.</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- footer start -->
|
||||
<footer class="wrap"><div class="right"> © LeoCAD.org </div></footer>
|
||||
<!-- footer end -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
docs/tutorial1-01.png
Normal file
After Width: | Height: | Size: 144 KiB |
BIN
docs/tutorial1-02.png
Normal file
After Width: | Height: | Size: 161 KiB |
BIN
docs/tutorial1-03.png
Normal file
After Width: | Height: | Size: 163 KiB |
BIN
docs/tutorial1-04.png
Normal file
After Width: | Height: | Size: 163 KiB |
BIN
docs/tutorial1-05.png
Normal file
After Width: | Height: | Size: 173 KiB |
BIN
docs/tutorial1-06.png
Normal file
After Width: | Height: | Size: 164 KiB |
BIN
docs/tutorial1-07.png
Normal file
After Width: | Height: | Size: 173 KiB |
BIN
docs/tutorial1-08.png
Normal file
After Width: | Height: | Size: 166 KiB |
BIN
docs/tutorial1-09.png
Normal file
After Width: | Height: | Size: 240 KiB |
BIN
docs/tutorial1-10.png
Normal file
After Width: | Height: | Size: 66 KiB |
BIN
docs/tutorial1-11.png
Normal file
After Width: | Height: | Size: 177 KiB |
BIN
docs/tutorial1-12.png
Normal file
After Width: | Height: | Size: 173 KiB |
189
docs/tutorial1.html
Normal file
|
@ -0,0 +1,189 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<title>Basic Tutorial | LeoCAD</title>
|
||||
<link rel="stylesheet" href="../main.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
<!-- navbar start -->
|
||||
<div class="nav-main">
|
||||
<div class="wrap">
|
||||
<a class="nav-home" href="../index.html"><img class="nav-logo" src="../leocad-32.png" width="32" height="32"> LeoCAD </a>
|
||||
<ul class="nav-site nav-site-internal">
|
||||
<li><a href="../download.html">Download</a></li>
|
||||
<li><a href="start.html" class="active">Documentation</a></li>
|
||||
<!-- <li><a href="../help.html">Help</a></li> -->
|
||||
</ul>
|
||||
<ul class="nav-site nav-site-external">
|
||||
<li><a href="https://github.com/leozide/leocad">GitHub</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- navbar end -->
|
||||
|
||||
<section class="content wrap documentationContent">
|
||||
|
||||
<!-- docbar start -->
|
||||
<div class="nav-docs">
|
||||
<div class="nav-docs-section">
|
||||
<h3>General Information</h3>
|
||||
<ul>
|
||||
<li><a href="start.html">Getting Started</a></li>
|
||||
<li><a href="library.html">Parts Library</a></li>
|
||||
<li><a href="compiling.html">Compiling Guide</a></li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
<li><a href="history.html">Version History</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Tutorials</h3>
|
||||
<ul>
|
||||
<!--
|
||||
<li><a href="">Choosing and Adding Pieces</a></li>
|
||||
<li><a href="">Moving and Rotating Pieces</a></li>
|
||||
<li><a href="camera.html">Camera and Viewport</a></li>
|
||||
<li><a href="">Models</a></li>
|
||||
<li><a href="">Flexible Parts</a></li>
|
||||
Keyframing
|
||||
POV-Ray
|
||||
-->
|
||||
<li><a href="tutorial1.html" class="active">Basic Tutorial</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- <li><a href="">Coordinate System</a></li>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Reference</h3>
|
||||
<ul>
|
||||
<li><a href="">Meta Commands</a></li>
|
||||
<li><a href="">Configuration Shortcuts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
<!-- docbar end -->
|
||||
|
||||
<div class="inner-content">
|
||||
|
||||
<h2>Basic Tutorial</h2>
|
||||
<p>This tutorial is designed as a quick start guide to give you an overview of the most commonly used LeoCAD features without going too deep on any particular topic. Through these exercises, you will create a race car and driver and learn to:</p>
|
||||
<ul>
|
||||
<li>Browse the parts library and add new pieces to a model.</li>
|
||||
<li>Move and rotate pieces.</li>
|
||||
<li>Create a model with multiple steps.</li>
|
||||
<li>Change the view position and orientation.</li>
|
||||
<li>Object Selection.</li>
|
||||
</ul>
|
||||
<p>If you haven't installed LeoCAD yet please visit the <a href="../download.html">Download Page</a> before continuing.</p>
|
||||
|
||||
<hr />
|
||||
<h4>Getting Started</h4>
|
||||
|
||||
<p>Launch the LeoCAD application, you'll see a window that looks somewhat like this:</p>
|
||||
<p class="centerImage"><img src="tutorial1-01.png" /></p>
|
||||
<p>LeoCAD presents a standard graphical user interface: a titlebar, menus, and toolbars at the top; a status bar along the bottom; and a workspace with tool-windows in the center.</p>
|
||||
<p>The left-hand portion of the workspace area is where one or more views of your model are displayed. To the right is a tool window showing a list of available parts, with a preview picture of the currently selected part and a palette of available colors. There are additional tool windows available for other operations, but they won't be featured in this tutorial.</p>
|
||||
<p>Note that the user interface is different between Operating Systems, so if you're not running the Windows version of LeoCAD your application will differ slightly from what's shown in the pictures.</p>
|
||||
|
||||
<hr />
|
||||
<h4>Browsing the Parts List</h4>
|
||||
|
||||
<p>Start building the car by adding a blue Plate 1 x 4:</p>
|
||||
<p>Scroll down the parts list (by default, this is displayed along the right edge of the workspace) until you find the 'Plates' group, then expand that group and select 'Plate 1 x 4'.</p>
|
||||
<p>Now click on the blue rectangle in the color palette just below the parts list, you'll notice that the image in the top right corner changes as you select different parts or change colors to reflect your current choices.</p>
|
||||
<p class="centerImage"><img src="tutorial1-02.png" /></p>
|
||||
|
||||
<hr />
|
||||
<h4>Adding a Piece</h4>
|
||||
|
||||
<p>Add the Plate 1 x 4 to your model:</p>
|
||||
<p>There several ways to add a piece to a model, the easiest one is to simply drag it from the parts list into the model view. While dragging the piece you'll see a preview of where it will be placed as you move the mouse.</p>
|
||||
<p class="centerImage"><img src="tutorial1-03.png" /></p>
|
||||
<p>TIP: Alternatively, you can press the 'Insert' key on your keyboard, or use the 'Insert Tool' from the toolbar.</p>
|
||||
|
||||
<hr />
|
||||
<h4>Moving Pieces</h4>
|
||||
|
||||
<p>Now add a blue Plate 2 x 4:</p>
|
||||
<p>Select Plate 2 x 4 from the parts list and to add it next to the piece you added earlier. It should be exactly 2 studs apart from the first piece, so if you didn't drop it on the right place you'll have to adjust it now.</p>
|
||||
<p>Move your mouse over the arrows on top of the Plate 2 x 4 and notice that when it's over one of them, it will turn yellow and the mouse pointer will change to an icon with 4 arrows. This means that if you hold the left mouse button down now and move the mouse the currently selected pieces will move along the line where the arrow is.</p>
|
||||
<p class="centerImage"><img src="tutorial1-04.png" /></p>
|
||||
<p>TIP: You can also use the arrows, Page Up or Page Down keys on your keyboard to move pieces, or the 'Move Tool' from the toolbar.</p>
|
||||
<p>TIP: The grid is very useful to quickly measure the distance between pieces.</p>
|
||||
|
||||
<hr />
|
||||
<h4>Rotating Pieces</h4>
|
||||
|
||||
<p>Add a blue Plate 2 x 8 on top of the previous 2 pieces:</p>
|
||||
<p>When you first drag the piece into the model it will be parallel to the first pieces, but we want it to be perpedicular to them so we'll need to rotate it by 90 degrees.</p>
|
||||
<p>Move your mouse over the curved blue arrow and drag it to rotate the piece, similar to what you did to move the pieces in the previous step. You will also have to move the new piece so it's on top of the previous pieces.</p>
|
||||
<p class="centerImage"><img src="tutorial1-05.png" /></p>
|
||||
<p>TIP: You can also use the keyboard to rotate by holding the SHIFT key down while pressing the arrows, Page Up or Page Down keys, or use the 'Rotate Tool' from the toolbar.</p>
|
||||
|
||||
<hr />
|
||||
<h4>Building Steps</h4>
|
||||
|
||||
<p>Building instructions are usually broken up into multiple steps so people can easily understand how a model is built, so let's move on to Step 2 of our model by clicking on the double right arrow on the toolbar. Notice that the current step is shown on the status bar, in the bottom right corner of the main window.</p>
|
||||
<p>Now go to the Timeline pane (under the parts list) and you'll be able to see the step where each piece was added to the model. To make it easier for someone else to build our car, let's move the Plate 2 x 8 to Step 2 by dragging it on the Timeline.</p>
|
||||
<p>If you go back to Step 1 in the intructions by clicking on the double left arrows you'll see that the Plate 2 x 8 is not visible there anymore and only appears on Step 2 or later.</p>
|
||||
<p class="centerImage"><img src="tutorial1-06.png" /></p>
|
||||
<p>TIP: You can also press the left and right keys while holding down the ALT key to move between steps.</p>
|
||||
|
||||
<hr />
|
||||
<h4>Searching for Parts</h4>
|
||||
|
||||
<p>Now go to Step 3 of the instructions and let's add a steering wheel and mudguards next. If you're not familiar with naming convention of the Parts Library it can take a while to find out which category a part belongs to so let's use the search feature to find those parts.</p>
|
||||
<p>Type "Mudguard" in the search box and press Enter. LeoCAD will search all parts for the text you typed and display the results under "Search Results" at the bottom of the list.</p>
|
||||
<p>Select "Car Mudguard 2 x 4 without Studs" and add it to the model, then do the same for the steering wheel and you’ll have something like this:</p>
|
||||
<p class="centerImage"><img src="tutorial1-07.png" /></p>
|
||||
|
||||
<hr />
|
||||
<h4>Adding More Pieces</h4>
|
||||
|
||||
<p>Advance the instructions another step and add a "Slope Brick 45 2 x 2" above the mudguard and another to the front of the car.</p>
|
||||
<p>Let’s also add another "Plate 1 x 4" to the car, here’s the picture of the almost complete car:</p>
|
||||
<p class="centerImage"><img src="tutorial1-08.png" /></p>
|
||||
|
||||
<hr />
|
||||
<h4>Rotating the View</h4>
|
||||
|
||||
<p>Now we need to add wheels to the car so let's start by adding the wheel holders on Step 5. It's not going to be easy to see the bottom of the car from the current position so let's rotate the camera to get a better view.</p>
|
||||
<p>Hold the ALT key down on your keyboard while you dragging the mouse using the left button and the view will rotate. With ALT pressed, dragging with the middle button will pan the view sideways, and dragging with the right button will zoom in and out.</p>
|
||||
<p>Once you have a good view position add 2 black "Plate 2 x 2 with Wheel Holders" to the car:</p>
|
||||
<p class="centerImage"><img src="tutorial1-09.png" /></p>
|
||||
<p>TIP: The buttons and keys for these shortcuts can be configured in the Preferences Dialog.</p>
|
||||
|
||||
<hr />
|
||||
<h4>Movement Snap</h4>
|
||||
|
||||
<p>Go to Step 6 and a grey "Wheel Rim 6.4 x 8" and a black "Tyre 6/50 x 8 Offset Tread".</p>
|
||||
<p>If you zoom in closer you'll notice that with the default movement increments it's not possible to get the wheel to align correctly with the wheel holder, so you'll have to disable Movement Snap by clicking on the magnet icon on the toolbar</p>
|
||||
<p>Select both the tyre and wheel at the same time by holding down the CONTROL key on the keyboard and clicking on each piece, and then move them to the correct place on the car.</p>
|
||||
<p class="centerImage"><img src="tutorial1-10.png" /></p>
|
||||
<p>TIP: The current movement increments are shown on the status bar.</p>
|
||||
|
||||
<hr />
|
||||
<h4>Copy and Paste</h4>
|
||||
|
||||
<p>We still need 3 more sets of wheels but instead of adding new tyres and wheels one at a time we can save time by copying the ones we just added to the clipboard and pasting it back. It works like most other applications, use the keyboard or toolbar buttons to copy and paste to the clipboard.</p>
|
||||
<p>When you paste a copy it's placed right on top of the one you copied it from, so we need to move new ones to the other side of the car. Since the car is exactly four studs wide, you can turn Movement Snap back on and set its value to 1 stud to easily position the new wheel on the other side of the car.</p>
|
||||
<p class="centerImage"><img src="tutorial1-11.png" /></p>
|
||||
|
||||
<hr />
|
||||
|
||||
<p>We still need one last thing to finish the project, a driver! Advance another step and select "Minifig Wizard" from the "Piece" menu, you'll see a dialog where you can customize a minifig. Select the colors and accessories you want and click "OK" to add the driver.</p>
|
||||
<p>The finished car should look something like this:</p>
|
||||
<p class="centerImage"><img src="tutorial1-12.png" /></p>
|
||||
<p>This completes the tutorial, remember that this tutorial does not teach you how to use the advanced features of the LeoCAD, this is just an introduction to the basic features.</p>
|
||||
<p>Don't forget to save the file in case you want to come back and play with it later or send it to a friend, you can also print the instructions or have LeoCAD create a web page with them for you. Just take a look at all the options you have on the menus, you can even create raytraced pictures and use them as your desktop wallpaper if you have POV-Ray installed!</p>
|
||||
|
||||
</div>
|
||||
</section>
|
||||
<!-- footer start -->
|
||||
<footer class="wrap"><div class="right"> © LeoCAD.org </div></footer>
|
||||
<!-- footer end -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
36
docs/tutorial1.ldr
Normal file
|
@ -0,0 +1,36 @@
|
|||
1 1 0 -8 10 1 0 0 0 1 0 0 0 1 3710.DAT
|
||||
1 1 0 -8 -60 1 0 0 0 1 0 0 0 1 3020.DAT
|
||||
0 STEP
|
||||
1 1 0 -16 -60 -0.000079 0 1 0 1 0 -1 0 -0.000079 3034.DAT
|
||||
0 STEP
|
||||
1 1 0.001586 -24 -30 -1 0 -0.000053 0 1 0 0.000053 0 -1 3829C01.DAT
|
||||
1 1 -0.00317 -32 -100 1 0 0.000106 0 1 0 -0.000106 0 1 3787.DAT
|
||||
0 STEP
|
||||
1 1 -0.004227 -56 -110 1 0 0.000106 0 1 0 -0.000106 0 1 3710.DAT
|
||||
1 1 0.011105 -40 -10 -1 0 -0.000159 0 1 0 0.000159 0 -1 3039.DAT
|
||||
1 1 -0.004756 -48 -110 -1 0 -0.000159 0 1 0 0.000159 0 -1 3039.DAT
|
||||
0 STEP
|
||||
1 0 0 -8 -100 1 0 0 0 1 0 0 0 1 4600.DAT
|
||||
1 0 0 -8 -20 1 0 0 0 1 0 0 0 1 4600.DAT
|
||||
0 STEP
|
||||
1 7 -30.00053 -3.000005 -20.001322 -0.000079 0 1 0 1 0 -1 0 -0.000079 4624.DAT
|
||||
1 0 -30.00053 -3.000005 -20.002111 0.000026 0 -1 0 1 0 1 0 0.000026 3641.DAT
|
||||
1 7 -30.00053 -3.000005 -100.00132 -0.000079 0 1 0 1 0 -1 0 -0.000079 4624.DAT
|
||||
1 0 -30.00053 -3.000005 -100.002113 0.000026 0 -1 0 1 0 1 0 0.000026 3641.DAT
|
||||
1 7 29.997353 -3.000005 -100.002136 0.000132 0 -1 0 1 0 1 0 0.000132 4624.DAT
|
||||
1 0 29.997345 -3.000005 -100.001328 -0.000079 0 1 0 1 0 -1 0 -0.000079 3641.DAT
|
||||
1 7 30.001587 -3.000005 -20.002098 0.000132 0 -1 0 1 0 1 0 0.000132 4624.DAT
|
||||
1 0 30.001587 -3.000005 -20.001305 -0.000079 0 1 0 1 0 -1 0 -0.000079 3641.DAT
|
||||
0 STEP
|
||||
0 !LEOCAD GROUP BEGIN Minifig #1
|
||||
1 1 -90.000122 -19.999998 -83.999992 -1 0 -0.000053 0 1 0 0.000053 -0 -1 3816.DAT
|
||||
1 1 -90.000122 -19.999998 -83.999992 -1 0 -0.000053 0 1 0 0.000053 -0 -1 3817.DAT
|
||||
1 14 -66.3414 -38.126976 -74.001221 -0.985435 0.120209 -0.120281 0.170052 0.696817 -0.696799 0.000052 -0.707104 -0.70711 3820.DAT
|
||||
1 14 -113.657776 -38.126995 -73.998734 -0.985435 -0.120284 0.120206 -0.170052 0.696817 -0.696799 0.000052 -0.707091 -0.707122 3820.DAT
|
||||
1 15 -74.500092 -55.999996 -84.000786 -0.985435 0.170052 -0.000053 0.170052 0.985435 0 0.000052 -0.000009 -1 3818.DAT
|
||||
1 15 -105.500153 -56 -83.999146 -0.985435 -0.170052 -0.000053 -0.170052 0.985435 -0 0.000052 0.000009 -1 3819.DAT
|
||||
1 1 -90.000122 -32 -83.999992 -1 0 -0.000053 0 1 0 0.000053 -0 -1 3815.DAT
|
||||
1 15 -90.000122 -63.999996 -83.999992 -1 0 -0.000053 0 1 0 0.000053 -0 -1 973P02.DAT
|
||||
1 14 -90.000122 -88 -83.999992 -1 0 -0.000053 0 1 0 0.000053 -0 -1 3626BP01.DAT
|
||||
1 4 -90.000122 -88 -83.999992 -1 0 -0.000053 0 1 0 0.000053 -0 -1 2446.DAT
|
||||
0 !LEOCAD GROUP END
|
49
download.html
Normal file
|
@ -0,0 +1,49 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<title>LeoCAD Downloads</title>
|
||||
<link rel="stylesheet" href="main.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
|
||||
<!-- navbar start -->
|
||||
<div class="nav-main">
|
||||
<div class="wrap">
|
||||
<a class="nav-home" href="index.html"><img class="nav-logo" src="leocad-32.png" width="32" height="32"> LeoCAD </a>
|
||||
<ul class="nav-site nav-site-internal">
|
||||
<li><a href="download.html" class="active">Download</a></li>
|
||||
<li><a href="docs/start.html">Documentation</a></li>
|
||||
<!-- <li><a href="help.html">Help</a></li> -->
|
||||
</ul>
|
||||
<ul class="nav-site nav-site-external">
|
||||
<li><a href="https://github.com/leozide/leocad">GitHub</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- navbar end -->
|
||||
|
||||
<section class="content wrap">
|
||||
<div class="light home-section">
|
||||
<h1>Downloads</h1>
|
||||
<div class="subHeader"></div>
|
||||
<p>LeoCAD is very easy to install and it's available for all major Operating Systems. In the sections below you'll find detailed download and installation instructions for each OS.</p>
|
||||
<h2>Windows</h2>
|
||||
<p>Click the button below to download the latest version of the LeoCAD installer. Once the download is complete run the installer and follow the installation instructions.</p>
|
||||
<div class="buttons-unit downloads"><a href="/asd" class="button">Download LeoCAD for Windows</a></div>
|
||||
<h2>Linux</h2>
|
||||
<p>LeoCAD is available directly from several distributions, so you may want to search for it in your package manager first. If you can't find it, you'll have to download the source code and compile your own binary.</p>
|
||||
<p>If you don't have the LDraw Parts Library installed you'll need to download it as well.</p>
|
||||
<div class="buttons-unit downloads"><a href="/asd" class="button">Download LeoCAD Source</a></div>
|
||||
<h2>OSX</h2>
|
||||
<p>Click the button below to download the latest version of the LeoCAD dmg package. Once the download is complete open the package and drag its contents to your Applications folder.</p>
|
||||
<div class="buttons-unit downloads"><a href="/asd" class="button">Download LeoCAD for OSX</a></div>
|
||||
</div>
|
||||
</section>
|
||||
<!-- footer start -->
|
||||
<footer class="wrap"><div class="right"> © LeoCAD.org </div></footer>
|
||||
<!-- footer end -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
favicon.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
hauler.png
Normal file
After Width: | Height: | Size: 176 KiB |
74
index.html
Normal file
|
@ -0,0 +1,74 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
||||
<title>LeoCAD</title>
|
||||
<link rel="stylesheet" href="main.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<!-- navbar start -->
|
||||
<div class="nav-main">
|
||||
<div class="wrap">
|
||||
<a class="nav-home" href="index.html"><img class="nav-logo" src="leocad-32.png" width="32" height="32"> LeoCAD </a>
|
||||
<ul class="nav-site nav-site-internal">
|
||||
<li><a href="download.html">Download</a></li>
|
||||
<li><a href="docs/start.html">Documentation</a></li>
|
||||
<!-- <li><a href="help.html">Help</a></li> -->
|
||||
</ul>
|
||||
<ul class="nav-site nav-site-external">
|
||||
<li><a href="https://github.com/leozide/leocad">GitHub</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- navbar end -->
|
||||
|
||||
<div class="hero">
|
||||
<div class="wrap">
|
||||
<div class="text"><strong>LeoCAD</strong></div>
|
||||
<div class="minitext">A CAD program for creating virtual LEGO models</div>
|
||||
<!-- <div class="buttons-unit">
|
||||
<a href="docs/start.html" class="button">Get Started</a>
|
||||
<a href="download.html" class="button">Download</a>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
<section class="content wrap">
|
||||
<section class="light home-section">
|
||||
<div class="marketing-row">
|
||||
<div class="marketing-col">
|
||||
<h3>Easy to Use</h3>
|
||||
<p>LeoCAD has an intuitive interface, designed to allow new users to start creating new models without having to spend too much time learning the application.</p>
|
||||
<p>At the same time it has a rich feature set, enabling experienced users to build models using more advanced techniques.</p>
|
||||
</div>
|
||||
<div class="marketing-col">
|
||||
<h3>LDraw Compatible</h3>
|
||||
<p>LeoCAD is fully compatible with the LDraw Standard and related tools. It reads and writes LDR and MPD files so you can share and download models from the internet.</p>
|
||||
<p>It also uses the LDraw parts library, which has almost 10,000 different parts and keeps receiving updates.</p>
|
||||
</div>
|
||||
<div class="marketing-col">
|
||||
<h3>Cross Platform, Open Source</h3>
|
||||
<p>Native versions are available for Windows, Linux and OSX so users are familiar with the program interface.</p>
|
||||
<p>LeoCAD is Open Source so anyone can contribute with fixes and features, and it's always going to remain free.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<p></p>
|
||||
<hr class="home-divider">
|
||||
<section class="home-section">
|
||||
<h2>Screenshots</h2>
|
||||
<p>LeoCAD is optimized for large models, here's the Tower Bridge official set with over 4,000 pieces:</p>
|
||||
<img src="towerbridge.png" />
|
||||
<p>It can be used to create building instructions with multiple steps:</p>
|
||||
<img src="hauler.png" />
|
||||
<p>You can have multiple views at the same time:</p>
|
||||
<img src="sweeper.png" />
|
||||
</section>
|
||||
</section>
|
||||
<!-- footer start -->
|
||||
<footer class="wrap"><div class="right"> © LeoCAD.org </div></footer>
|
||||
<!-- footer end -->
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
leocad-32.png
Normal file
After Width: | Height: | Size: 4.8 KiB |
356
main.css
Normal file
|
@ -0,0 +1,356 @@
|
|||
footer {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
margin-top: 36px;
|
||||
margin-bottom: 18px;
|
||||
overflow: auto;
|
||||
}
|
||||
ul, li {
|
||||
margin-left: 20px;
|
||||
}
|
||||
a {
|
||||
color: #c05b4d;
|
||||
text-decoration: none;
|
||||
}
|
||||
hr {
|
||||
height: 0;
|
||||
border-top: 1px solid #ccc;
|
||||
border-bottom: 1px solid #eee;
|
||||
}
|
||||
a:hover, a:focus {
|
||||
color: #a5473a;
|
||||
text-decoration: underline;
|
||||
}
|
||||
.nav-main {
|
||||
background: #222;
|
||||
color: #fafafa;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
height: 50px;
|
||||
box-shadow: 0 0 5px rgba(0,0,0,0.5);
|
||||
width: 100%;
|
||||
z-index: 100;
|
||||
}
|
||||
.nav-main {
|
||||
position: fixed;
|
||||
}
|
||||
.nav-main a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.nav-docs a:hover {
|
||||
text-decoration: none;
|
||||
color: #cc7a6f;
|
||||
}
|
||||
.nav-main .nav-site-internal {
|
||||
margin: 0 0 0 20px;
|
||||
}
|
||||
.nav-main ul {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
}
|
||||
.nav-main .nav-site li {
|
||||
margin: 0;
|
||||
}
|
||||
.nav-main li {
|
||||
display: inline;
|
||||
}
|
||||
.nav-main .nav-site li>a {
|
||||
box-sizing: content-box;
|
||||
padding: 0 10px;
|
||||
line-height: 50px;
|
||||
display: inline-block;
|
||||
height: 50px;
|
||||
color: #e6e6e6;
|
||||
}
|
||||
.nav-main .nav-site li>a.active {
|
||||
color: #fafafa;
|
||||
border-bottom: 3px solid #e61d1d;
|
||||
background: #333;
|
||||
}
|
||||
.nav-main .nav-site li>a:hover {
|
||||
color: #fff;
|
||||
}
|
||||
.nav-main:after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
height: 50px;
|
||||
}
|
||||
.nav-main .nav-home {
|
||||
color: #e61d1d;
|
||||
font-size: 24px;
|
||||
line-height: 50px;
|
||||
height: 50px;
|
||||
display: inline-block;
|
||||
}
|
||||
.nav-main .nav-logo {
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
}
|
||||
.nav-main .nav-site-external {
|
||||
float: right;
|
||||
margin: 0;
|
||||
}
|
||||
.nav-docs {
|
||||
color: #2d2d2d;
|
||||
font-size: 14px;
|
||||
float: left;
|
||||
width: 210px;
|
||||
}
|
||||
.nav-docs .nav-docs-section {
|
||||
border-bottom: 1px solid #ccc;
|
||||
border-top: 1px solid #eee;
|
||||
padding: 12px 0;
|
||||
}
|
||||
.nav-docs .nav-docs-section:first-child {
|
||||
padding-top: 0;
|
||||
border-top: 0;
|
||||
}
|
||||
.nav-docs ul {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
}
|
||||
.nav-docs li {
|
||||
line-height: 16px;
|
||||
margin: 0 0 6px;
|
||||
}
|
||||
.nav-docs a.active {
|
||||
color: #cc7a6f;
|
||||
}
|
||||
.nav-docs a {
|
||||
color: #666;
|
||||
display: block;
|
||||
}
|
||||
.nav-docs a.active {
|
||||
color: #cc7a6f;
|
||||
}
|
||||
.nav-docs h3 {
|
||||
text-transform: uppercase;
|
||||
font-size: 14px;
|
||||
}
|
||||
.hero {
|
||||
// height: 300px;
|
||||
height: 180px;
|
||||
// background: #2d2d2d;
|
||||
padding-top: 50px;
|
||||
// color: #e9e9e9;
|
||||
font-weight: 300;
|
||||
}
|
||||
.hero .text {
|
||||
font-size: 64px;
|
||||
text-align: center;
|
||||
}
|
||||
.hero .minitext {
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
// text-transform: uppercase;
|
||||
}
|
||||
.hero strong {
|
||||
color: #e61d1d;
|
||||
font-weight: 400;
|
||||
}
|
||||
.container {
|
||||
padding-top: 50px;
|
||||
min-width: 960px;
|
||||
}
|
||||
.wrap {
|
||||
width: 960px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
}
|
||||
.marketing-row {
|
||||
margin: 50px 0;
|
||||
}
|
||||
.marketing-row:after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
.marketing-col {
|
||||
float: left;
|
||||
margin-left: 40px;
|
||||
width: 280px;
|
||||
}
|
||||
.marketing-col:first-child {
|
||||
margin-left: 0;
|
||||
}
|
||||
.marketing-col h3 {
|
||||
color: #2d2d2d;
|
||||
font-size: 24px;
|
||||
line-height: 28px;
|
||||
font-weight: normal;
|
||||
}
|
||||
.marketing-col p {
|
||||
font-size: 16px;
|
||||
}
|
||||
.home-divider {
|
||||
border-top-color: #bbb;
|
||||
margin: 0 auto;
|
||||
width: 400px;
|
||||
}
|
||||
.centerImage {
|
||||
text-align: center;
|
||||
}
|
||||
.documentationContent {
|
||||
padding-top: 20px;
|
||||
width: 1280px;
|
||||
}
|
||||
.documentationContent hr {
|
||||
border-top-color: #bbb;
|
||||
margin: 0 auto;
|
||||
margin-top: 40px;
|
||||
margin-bottom: 40px;
|
||||
width: 600px;
|
||||
}
|
||||
.documentationContent:after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
.documentationContent .subHeader {
|
||||
font-size: 24px;
|
||||
}
|
||||
.subHeader {
|
||||
font-size: 21px;
|
||||
font-weight: 200;
|
||||
line-height: 30px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.nosidebar .inner-content {
|
||||
float: none;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.inner-content {
|
||||
float: right;
|
||||
// width: 650px;
|
||||
width: 960px;
|
||||
}
|
||||
.home-section {
|
||||
margin: 50px 0;
|
||||
}
|
||||
.home-section h2 {
|
||||
margin-top: 30px;
|
||||
}
|
||||
.button {
|
||||
border-radius: 4px;
|
||||
padding: 8px 16px;
|
||||
font-size: 18px;
|
||||
font-weight: 400;
|
||||
margin: 0 12px;
|
||||
display: inline-block;
|
||||
color: #fafafa;
|
||||
text-decoration: none;
|
||||
text-shadow: 0 1px 3px rgba(0,0,0,0.3);
|
||||
box-shadow: 0 1px 1px rgba(0,0,0,0.2);
|
||||
text-decoration: none;
|
||||
}
|
||||
.button:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
.buttons-unit .button {
|
||||
font-size: 24px;
|
||||
background: #943a2d;
|
||||
color: #fafafa;
|
||||
}
|
||||
.buttons-unit {
|
||||
margin-top: 60px;
|
||||
text-align: center;
|
||||
}
|
||||
.buttons-unit.downloads {
|
||||
margin: 30px 0;
|
||||
}
|
||||
.highlight {
|
||||
margin-bottom: 14px;
|
||||
padding: 14px 14px 14px;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
.highlight {
|
||||
color: #333333;
|
||||
background: #f8f5ec;
|
||||
}
|
||||
.highlight pre code {
|
||||
display: block;
|
||||
background: none;
|
||||
padding: 0;
|
||||
}
|
||||
.highlight pre code {
|
||||
color: #637c84;
|
||||
}
|
||||
div.CodeMirror pre, div.CodeMirror-linenumber, code {
|
||||
font-family: 'source-code-pro', Menlo, Consolas, 'Courier New', monospace;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.highlight:after {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
padding: 3px 7px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
color: #c2c0bc;
|
||||
background-color: #f1ede4;
|
||||
content: "Code";
|
||||
}
|
||||
html {
|
||||
font-family: "Helvetica Neue",Helvetica,Roboto,Arial,sans-serif;
|
||||
color: #484848;
|
||||
line-height: 1.28;
|
||||
}
|
||||
article, aside, footer, header, hgroup, main, nav, section {
|
||||
display: block;
|
||||
}
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
p {
|
||||
margin: 10px 0;
|
||||
}
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
margin: 10px 0;
|
||||
font-family: inherit;
|
||||
font-weight: bold;
|
||||
line-height: 20px;
|
||||
color: inherit;
|
||||
text-rendering: optimizelegibility;
|
||||
}
|
||||
h1, h2, h3 {
|
||||
line-height: 40px;
|
||||
}
|
||||
h1 {
|
||||
font-size: 39px;
|
||||
}
|
||||
h1:after {
|
||||
content: "";
|
||||
display: table;
|
||||
clear: both;
|
||||
}
|
||||
h2 {
|
||||
font-size: 31px;
|
||||
}
|
||||
.documentationContent h2 {
|
||||
margin-top: 30px;
|
||||
}
|
||||
.documentationContent h2:first-child {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.documentationContent h4 {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.right {
|
||||
float: right;
|
||||
}
|
||||
.left {
|
||||
float: left;
|
||||
}
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
border: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
BIN
sweeper.png
Normal file
After Width: | Height: | Size: 158 KiB |
BIN
towerbridge.png
Normal file
After Width: | Height: | Size: 190 KiB |
115
update.py
Normal file
|
@ -0,0 +1,115 @@
|
|||
import glob
|
||||
|
||||
navbar = """<!-- navbar start -->
|
||||
<div class="nav-main">
|
||||
<div class="wrap">
|
||||
<a class="nav-home" href="{root}index.html"><img class="nav-logo" src="{root}leocad-32.png" width="32" height="32"> LeoCAD </a>
|
||||
<ul class="nav-site nav-site-internal">
|
||||
<li><a href="{root}download.html">Download</a></li>
|
||||
<li><a href="{docs}start.html">Documentation</a></li>
|
||||
<!-- <li><a href="{root}help.html">Help</a></li> -->
|
||||
</ul>
|
||||
<ul class="nav-site nav-site-external">
|
||||
<li><a href="https://github.com/leozide/leocad">GitHub</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
"""
|
||||
|
||||
docbar = """<!-- docbar start -->
|
||||
<div class="nav-docs">
|
||||
<div class="nav-docs-section">
|
||||
<h3>General Information</h3>
|
||||
<ul>
|
||||
<li><a href="start.html">Getting Started</a></li>
|
||||
<li><a href="library.html">Parts Library</a></li>
|
||||
<li><a href="compiling.html">Compiling Guide</a></li>
|
||||
<li><a href="license.html">License</a></li>
|
||||
<li><a href="history.html">Version History</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Tutorials</h3>
|
||||
<ul>
|
||||
<!--
|
||||
<li><a href="">Choosing and Adding Pieces</a></li>
|
||||
<li><a href="">Moving and Rotating Pieces</a></li>
|
||||
<li><a href="camera.html">Camera and Viewport</a></li>
|
||||
<li><a href="">Models</a></li>
|
||||
<li><a href="">Flexible Parts</a></li>
|
||||
Keyframing
|
||||
POV-Ray
|
||||
-->
|
||||
<li><a href="tutorial1.html">Basic Tutorial</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- <li><a href="">Coordinate System</a></li>
|
||||
<div class="nav-docs-section">
|
||||
<h3>Reference</h3>
|
||||
<ul>
|
||||
<li><a href="">Meta Commands</a></li>
|
||||
<li><a href="">Configuration Shortcuts</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
"""
|
||||
|
||||
footer = """<!-- footer start -->
|
||||
<footer class="wrap"><div class="right"> © LeoCAD.org </div></footer>
|
||||
"""
|
||||
|
||||
def setActive(text, file):
|
||||
quotes = file + '"'
|
||||
return text.replace(quotes, quotes + ' class="active"')
|
||||
|
||||
def addNavBar(file):
|
||||
if file == 'download.html' or file == 'help.html':
|
||||
return setActive(navbar, file)
|
||||
elif file != 'index.html':
|
||||
return setActive(navbar, 'start.html')
|
||||
else:
|
||||
return navbar
|
||||
|
||||
def addDocBar(file):
|
||||
return setActive(docbar, file)
|
||||
|
||||
def addFooter(file):
|
||||
return footer
|
||||
|
||||
def processFile(folder, file):
|
||||
skip = False
|
||||
root = ''
|
||||
docs = 'docs/'
|
||||
if folder == 'docs/':
|
||||
root = '../'
|
||||
docs = ''
|
||||
|
||||
with open(folder + file) as oldfile:
|
||||
lines = []
|
||||
for line in oldfile:
|
||||
trim = line.strip()
|
||||
if trim == '<!-- navbar start -->':
|
||||
skip = True
|
||||
line = addNavBar(file)
|
||||
elif trim == '<!-- docbar start -->':
|
||||
skip = True
|
||||
line = addDocBar(file)
|
||||
elif trim == '<!-- footer start -->':
|
||||
skip = True
|
||||
line = addFooter(file)
|
||||
elif trim == '<!-- navbar end -->' or trim == '<!-- docbar end -->' or trim == '<!-- footer end -->':
|
||||
skip = False
|
||||
elif skip:
|
||||
continue
|
||||
|
||||
lines.append(line.format(root=root,docs=docs))
|
||||
|
||||
oldfile.close()
|
||||
with open(folder + file, 'w') as newfile:
|
||||
newfile.writelines(lines)
|
||||
|
||||
for folder in ['', 'docs/']:
|
||||
for file in glob.glob(folder + '*.html'):
|
||||
print (file)
|
||||
processFile(folder, file[len(folder):])
|
1
updates.txt
Normal file
|
@ -0,0 +1 @@
|
|||
0.83.1 9306
|