Login  Register

Re: Java 3D CAD program - volunteer opportunities

Posted by RickLutowski on Mar 27, 2023; 6:28pm
URL: https://forum.jogamp.org/Java-3D-CAD-program-volunteer-opportunities-tp4042337p4042349.html

philjord wrote:
> package com.jreality.cmodel.rcs_subdiv.Partition from jreality_v0.6_src.tgz
> has
> import  com.jreality.geometry.shape3.ClosedFacetedSurface;

Yes. Early on I anticipated incorporating java3d into CM Creator using CM Surveyor libraries, so I put in some 'hooks' in anticipation. These hooks may or not survive the actual java3d incorporation depending on the eventual design, but are there now.

To resolve these dependencies, install CM Surveyor sources first, then CM Creator.  When you are done, the directory

<system dependent path>/src/com/jreality

should have the package subdirectories

behavior  -- CM Surveyor packages, might be used by CM Creator java3d
cmodel    -- CM Creator packages
creator    -- CM Creator packages
geometry -- CM Surveyor packages, also supports CM Creator java3d
io             -- packages used by both
surveyor  -- CM Surveyor packages, some sub-packages also support CM Creator java3d
util          -- packages used by both

You can then compile the .java files, CM Surveyor first.  I don't remember if a compile script was included in the CM Surveyor distro.  If not, this (linux) script used to work:

#javac -Xlint:unchecked -d /usr/local/_jreality/  \
javac -d /usr/local/_jreality/  \
/usr/local/_jreality/src/com/jreality/surveyor/gui/*.java  \
/usr/local/_jreality/src/com/jreality/surveyor/sg/*.java  \
/usr/local/_jreality/src/com/jreality/geometry/*.java  \
/usr/local/_jreality/src/com/jreality/geometry/shape2/*.java  \
/usr/local/_jreality/src/com/jreality/geometry/shape3/*.java  \
/usr/local/_jreality/src/com/jreality/geometry/sg/*.java  \
/usr/local/_jreality/src/com/jreality/behavior/*.java  \
/usr/local/_jreality/src/com/jreality/io/*.java \
/usr/local/_jreality/src/com/jreality/util/*.java \
/usr/local/_jreality/src/com/jreality/util/gui/*.java \
/usr/local/_jreality/src/com/jreality/util/math/*.java \
/usr/local/_jreality/src/com/jreality/util/search/*.java \
/usr/local/_jreality/src/com/jreality/util/units/*.java \
/usr/local/_jreality/src/com/jreality/demo/freedomship/*.java \
/usr/local/_jreality/src/com/jreality/demo/outfit/*.java \
/usr/local/_jreality/src/com/jreality/demo/prefab/*.java \
/usr/local/_jreality/src/com/jreality/demo/riverbend1/*.java \
/usr/local/_jreality/src/com/jreality/demo/riverbend2/*.java \
/usr/local/_jreality/src/com/jreality/demo/superstore/*.java

Unfortunately, this script now gives a bunch of errors about missing classes in the packages
javax.media.j3d
javax.vecmath

As mentioned earlier, CM Surveyor was written when java3d first came out.  I would guess these j3d packages no longer exist.  Rather than updating CM Surveyor to the latest java3d, just comment out the script lines that trigger the errors.  The only lines above you should need for now are the ones that compile the first 3 geometry packages

/usr/local/_jreality/src/com/jreality/geometry/*.java  \
/usr/local/_jreality/src/com/jreality/geometry/shape2/*.java  \
/usr/local/_jreality/src/com/jreality/geometry/shape3/*.java  \

plus
whatever /util/ packages they need.


> com.jreality.creator.gui.CreatorMenubar
> needs
> import  com.jreality.creator.gui.menu.RefSurfaceMenu;
> which is not in the src

Delete this import from CreatorMenubar.java.  It should not be there.

Now, compile CM Creator using the compile script in the CM Creator distro.
Hopefully, this will resolve the dependency problems