Interface ConstHairSettings

All Superinterfaces:
AutoCloseable, Comparable<JoltPhysicsObject>, ConstJoltPhysicsObject
All Known Implementing Classes:
HairSettings, HairSettingsRef

public interface ConstHairSettings extends ConstJoltPhysicsObject
Read-only access to a HairSettings object. (native type: const HairSettings)
  • Method Details

    • countMaterials

      int countMaterials()
      Return the number of materials. The settings are unaffected.
      Returns:
      the count (≥0)
    • countRenderStrands

      int countRenderStrands()
      Return the number of render strands. The settings are unaffected.
      Returns:
      the count (≥0)
    • countRenderVertices

      int countRenderVertices()
      Return the number of render vertices. The settings are unaffected.
      Returns:
      the count (≥0)
    • countScalpTriangles

      int countScalpTriangles()
      Return the number of triangles in the scalp mesh. The settings are unaffected.
      Returns:
      the count (≥0)
    • countScalpVertices

      int countScalpVertices()
      Return the number of vertices in the scalp mesh. The settings are unaffected.
      Returns:
      the count (≥0)
    • countSimStrands

      int countSimStrands()
      Return the number of simulation strands. The settings are unaffected.
      Returns:
      the count (≥0)
    • getInitialGravity

      Vec3 getInitialGravity()
      Copy the initial gravity vector. The settings are unaffected.
      Returns:
      a new vector (in meters per second squared)
    • getMaterial

      ConstHairMaterial getMaterial(int index)
      Access the specified material. The settings are unaffected.
      Parameters:
      index - the index of the material to access (≥0)
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getNumIterationsPerSecond

      int getNumIterationsPerSecond()
      Return the iteration rate. The settings are unaffected.
      Returns:
      the number of iterations per second (≥1)
    • getRenderStrand

      ConstRStrand getRenderStrand(int strandIndex)
      Access the specified render strand. The settings are unaffected.
      Parameters:
      strandIndex - the index of the strand to access (≥0)
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getScalpNumSkinWeightsPerVertex

      int getScalpNumSkinWeightsPerVertex()
      Alter the number of skinning weights per vertex. The settings are unaffected.
      Returns:
      the number of weights per vertex
    • getScalpTriangle

      ConstIndexedTriangleNoMaterial getScalpTriangle(int triangleIndex)
      Access the vertex indices of the specified triangle in the scalp mesh. The settings are unaffected.
      Parameters:
      triangleIndex - the index of the triangle to access (≥0)
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getScalpVertex

      Float3 getScalpVertex(int vertexIndex)
      Copy the specified vertex in the scalp mesh. The settings are unaffected.
      Parameters:
      vertexIndex - the index of the vertex to access (≥0)
      Returns:
      a new vector
    • getSimStrand

      ConstSStrand getSimStrand(int strandIndex)
      Access the specified simulation strand. The settings are unaffected.
      Parameters:
      strandIndex - the index of the strand to access (≥0)
      Returns:
      a new JVM object with the pre-existing native object assigned
    • getSimulationBounds

      ConstAaBox getSimulationBounds()
      Access the simulation bounds. The settings are unaffected.
      Returns:
      a new JVM object with the pre-existing native object assigned
    • saveBinaryState

      void saveBinaryState(StreamOut streamOut)
      Write the state of this object to the specified stream, excluding the compute buffers. The settings are unaffected.
      Parameters:
      streamOut - where to write objects (not null)