This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package local | |
import java.io.{File, IOException} | |
import scalismo.common.Scalar | |
import scalismo.io.ImageIO | |
import scalismo.mesh.ScalarMeshField | |
import scalismo.utils.{MeshConversion, VtkHelpers} | |
import vtk.{vtkPolyData, vtkPolyDataReader} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example | |
import java.awt.Color | |
import scalismo.io.{LandmarkIO, MeshIO, StatismoIO} | |
import java.io.File | |
import breeze.linalg.{DenseMatrix, DenseVector} | |
import scalismo.common._ | |
import scalismo.geometry._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example | |
import java.awt.Color | |
import scalismo.io.{LandmarkIO, MeshIO, StatismoIO} | |
import java.io.File | |
import breeze.linalg.{DenseMatrix, DenseVector} | |
import scalismo.common._ | |
import scalismo.geometry._ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val noseless = MeshIO.readMesh(new File("datasets/noseless.stl")).get | |
show(noseless,"noseless") | |
val littleModel = StatismoIO.readStatismoMeshModel(new File("datasets/model.h5")).get | |
show(littleModel, "littleModel") | |
val zeroMean = VectorField(RealSpace[_3D], (pt:Point[_3D]) => Vector(0,0,0)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ch.unibas.cs.gravis.shapemodelling | |
import java.io.{PrintWriter, File} | |
import scalismo.geometry._ | |
import scalismo.io.MeshIO | |
import scalismo.mesh.{MeshMetrics, Mesh, TriangleMesh} | |
import scalismo.utils.MeshConversion | |
import vtk.{vtkPolyData, vtkPolyDataConnectivityFilter} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package vsdClientSeed | |
import java.io.File | |
import ch.unibas.cs.gravis.vsdclient.{VSDCommonObjectInfo, VSDClient} | |
import ch.unibas.cs.gravis.vsdclient.VSDJson._ | |
import scala.concurrent.Future | |
object VSDLegStatus { |