class TriangleMesh3DOperations extends AnyRef
- Alphabetic
- By Inheritance
- TriangleMesh3DOperations
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TriangleMesh3DOperations(mesh: TriangleMesh[_3D])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clip(clipPointPredicate: (Point[_3D]) => Boolean): TriangleMesh[_3D]
Returns a new TriangleMesh where all points satisfying the given predicate are removed.
Returns a new TriangleMesh where all points satisfying the given predicate are removed. All cells containing deleted points are also deleted.
- To do
use MeshCompactifier to express this functionality. But first verify and test that it remains the same.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def closestPoint(point: Point[_3D]): ClosestPoint
- def closestPointOnSurface(point: Point[_3D]): ClosestPointWithType
- def compact: MeshCompactifier
Reduces the triangle and points so that only used and valid locations and triangles remain.
- def decimate(targetedNumberOfVertices: Int): TriangleMesh[_3D]
Attempts to reduce the number of vertices of a mesh to the given number of vertices.
Attempts to reduce the number of vertices of a mesh to the given number of vertices.
- targetedNumberOfVertices
The targeted number of vertices. Note that it is not guaranteed that this number is reached exactly
- returns
The decimated mesh
- def edgeIsOnBoundary(pid1: PointId, pid2: PointId): Boolean
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getIntersectionPoints(point: Point[_3D], direction: EuclideanVector[_3D]): Seq[Point[_3D]]
- def getIntersectionPointsOnSurface(point: Point[_3D], direction: EuclideanVector[_3D]): Seq[(TriangleId, BarycentricCoordinates)]
- def hasIntersection(point: Point[_3D], direction: EuclideanVector[_3D]): Boolean
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def mask(pointFilter: (PointId) => Boolean, triangleFilter: (TriangleId) => Boolean): MeshCompactifier
Mask a mesh to a subset of points and triangles.
Mask a mesh to a subset of points and triangles.
- pointFilter
Predicate that maps PointId to boolean ('true' = keep location).
- triangleFilter
Predicate that maps TriangleId to boolean ('true' = keep triangle).
- def maskPoints(pointFilter: (PointId) => Boolean): MeshCompactifier
Mask reduces the pointSet and triangulation of a mesh to keep only those parts that evaluate to true for the passed in predicate.
Mask reduces the pointSet and triangulation of a mesh to keep only those parts that evaluate to true for the passed in predicate.
- pointFilter
Predicate that maps PointId to boolean ('true' = keep location).
- def maskSpatially(pointFilter: (Point[_3D]) => Boolean): MeshCompactifier
Mask reduces the pointSet and triangulation of a mesh to keep only those parts that evaluate to true for the passed in predicate.
Mask reduces the pointSet and triangulation of a mesh to keep only those parts that evaluate to true for the passed in predicate.
- pointFilter
predicate that maps 3d locations to boolean ('true' = keep location).
- def maskTriangles(triangleFilter: (TriangleId) => Boolean): MeshCompactifier
Mask a mesh to a subset of the triangles.
Mask a mesh to a subset of the triangles.
- triangleFilter
Predicate that maps TriangleId to boolean ('true' = keep triangle).
- def maskWithPlane(point: Point[_3D], normal: EuclideanVector[_3D]): MeshCompactifier
mask points behind clipping plane
mask points behind clipping plane
- point
point in clipping plane
- normal
normal vector of clipping plane
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pointIsOnBoundary(pid: PointId): Boolean
- def shortestDistanceToSurfaceSquared(point: Point[_3D]): Double
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toBinaryImage: Field[_3D, Short]
Returns a new continuous binary ScalarImage defined on 3-dimensional RealSpace , where the mesh surface is used to split the image domain.
Returns a new continuous binary ScalarImage defined on 3-dimensional RealSpace , where the mesh surface is used to split the image domain. Points lying on the space side pointed towards by the surface normals will have value 0. Points lying on the other side have value 1. Hence if the mesh is a closed surface, points inside the surface have value 1 and points outside 0.
- def toDistanceImage: DifferentiableField[_3D, Float]
Returns a new continuous DifferentiableScalarImage defined on 3-dimensional RealSpace which is the distance transform of the mesh
- def toString(): String
- Definition Classes
- AnyRef → Any
- def triangleIsOnBoundary(tid: TriangleId): Boolean
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()