Skip to content

Latest commit

 

History

History
124 lines (92 loc) · 2.66 KB

README.md

File metadata and controls

124 lines (92 loc) · 2.66 KB

Plasm

Build Status

This repo:

Run tests

julia --project=.  test/bbox.jl
julia --project=.  test/points.jl
julia --project=.  test/plane.jl

julia --project=.  test/hpc.jl
julia --project=.  test/structural_frames.jl

# lar
julia --project=.  test/lar.jl
julia --project=.  test/random-tetgen.jl
julia --project=.  test/simplexn.jl

julia --project=.  test/arrange2d.jl
julia --project=.  test/arrange3d.jl
julia --project=.  test/boolean.jl

julia --project=.  test/building.jl

Developing Plasm.jl

Links:

Always remember to activate the current project (in the current directory):

# from here use
julia --project=. whatever...
# clone the current repository
cd ~
mkdir -p github.com/scrgiorgio
cd github.com/scrgiorgio
git clone https://github.com/scrgiorgio/Plasm.jl
cd Plasm.jl

julia

using Pkg
Pkg.activate(".")

Pkg.add([
  "Combinatorics", 
  "GLFW", 
  "ModernGL", 
  "PyCall", 
  "StaticArrays", 
  "Test", 
  "LinearAlgebra", 
  "DataStructures", 
  "SparseArrays", 
  "NearestNeighbors", 
  "Triangulate", 
  "IntervalTrees",
  "CoordinateTransformations", 
  "Rotations",
  "GeometryBasics",
  "Colors",
  "FileIO",
  "MeshCat",
  "IJulia",
  "Random",
  "Statistics"
])

# update the manifest too
Pkg.resolve()

exit()

Viewer options

  • GLMakie.jl (using internally glfw for desktop)

  • MeshCat.jl (using MeshCat/ThreeJL)

    • no support for 3d text (we can always use alberto's code)
    • no many releases
    • seems the best choice

(OPTIONAL) Julia notebooks

To test notebooks:

  • install Microsoft Visual Studio
  • install Julia Extension
  • Open notebooks/examples.ipynb

For Jupyter Notebooks alternatives see :

using IJulia
notebook(dir=pwd())
# jupyterlab() (OPTIONAL) if you want to install lab

# force to use julia internal jupyter
ENV["JUPYTER"]=""
Pkg.build("IJulia")

exit()

# for Alberto's laptop: use `lab` instead of notebook
# ~/.julia/conda/3/bin/jupyter notebook --ip='*' --NotebookApp.token='' --NotebookApp.password=''