Menu

Tree [2e5973] master /
 History

HTTPS access


File Date Author Commit
 .github 2021-05-18 ag88 ag88 [923dc1] update .github
 libs 2022-08-25 ag88 ag88 [298ec2] add command line processing, log4j
 oldlibs 2022-08-21 ag88 ag88 [3b8a05] update java3d to 1.7.0
 src 2022-08-25 ag88 ag88 [298ec2] add command line processing, log4j
 web 2022-08-24 ag88 ag88 [4a8a95] Release 0.10.0
 .ant-targets-build.xml 2021-05-18 ag88 ag88 [c966eb] update readme.md
 .classpath 2022-08-25 ag88 ag88 [298ec2] add command line processing, log4j
 .gitignore 2022-08-21 ag88 ag88 [3b8a05] update java3d to 1.7.0
 .project 2021-05-18 ag88 ag88 [c966eb] update readme.md
 LICENSE.txt 2017-03-12 Andrew Goh Andrew Goh [43dc6e] initial commit
 README.md 2022-08-24 ag88 ag88 [4a8a95] Release 0.10.0
 attributions.txt 2022-08-25 ag88 ag88 [298ec2] add command line processing, log4j
 build.xml 2022-08-25 ag88 ag88 [2e5973] sync
 copyright.txt 2017-03-13 Andrew Goh Andrew Goh [0bbbe8] added about dialog
 stlviewer.jar 2022-08-25 ag88 ag88 [6c2bdf] sync

Read Me

STLViewer

STL 3D object file viewer for java.

example

install

unzip distributed stlviewer*.zip

should extract:
stlviewer.jar
libs/j3dcore.jar
libs/j3dutils.jar
libs/jogamp-fat.jar
libs/vecmath.jar
, etc to a directory

run

Go into the directory, run:

java -jar stlviewer.jar

In the directory, the above libs jars should be in libs subdirectory.
In Windows and various OS you may be able to run it by simply double clicking the jar file

Navigation
- holding / dragging the left mouse button rotates the model
- holding / dragging the right mouse button pan the model
- rotating the mouse wheel forward moves away from the model / backward moves towards the model
- clicking home on the toolbar reverts to the initial view

build

ant
(ant and jdk is required for the build')

Pre-requisites

Release 0.10.0 requires Java >= 11 Java/JDK 11 or higher to run.

Release 0.8.0 :
This is the previous working release. This release requires Java 1.8 jdk/jre to run.
- if you are running Java 8, use this release.

Changelog

Release 0.10.0 JDK >= 11
- fixes for mouse interactions in Java 11
- requires Java 11 (JDK 11) or higher to run
- added snapshot/screenshot
- Tools > "fix mouse interactions" now provides a "mouse controls" dialog.
mouse control
You can reassign the mouse buttons. The same mouse button can be used for different functions rotate/zoom/pan with ctrl/shift keys.

Release 0.8.0 JDK = 8
- an initial stable release
- requires Java 8 (JDK 8)

note

  • the app resizes the model and relocates the origin to ease viewing manipulations
  • in relesae 0.9.0, some later releases of Java e.g. 9, 11 and above messed up the controls and panning with right mouse doesn't work! if you encounter this issue try Tools > "fix mouse interactions". use release 0.10.0 instead, that fixes this issue and provides features to reassign/remap the mouse buttons.

Attributions

this app/project uses/is made possible by the java3d and jogl implementations maintained by the jogamp community
and part are derivatived works in particular of java3d from sun/oracle
- http://jogamp.org/
- https://gouessej.wordpress.com/2012/08/01/java-3d-est-de-retour-java-3d-is-back
- https://github.com/hharrison/java3d-core
- https://github.com/hharrison/java3d-utils
- https://github.com/hharrison/vecmath
- http://jogamp.org/deployment/v2.3.2/fat/jogamp-fat.jar

and the stl parser by cyanobacterium
https://github.com/cyanobacterium/STL-Parser-for-Java

partially derived from
cpedrinaci/STL-Loader https://github.com/cpedrinaci/STL-Loader

Licence

Apache License, Version 2.0
applies to code package org.stlviewer sub-branch

Software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

origin

originally hosted on: https://github.com/ag88/stl-viewer

developing this has taken quite some effort mainly in getting it to work and rather extensive tests. i'd really appreciate it if you could support my efforts Donate, you could also help simply starring this repository ;)

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.