congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
TriangleMesh.getTexCoords
Code IndexAdd Tabnine to your IDE (free)

How to use
getTexCoords
method
in
javafx.scene.shape.TriangleMesh

Best Java code snippets using javafx.scene.shape.TriangleMesh.getTexCoords (Showing top 10 results out of 315)

origin: eu.mihosoft.vrl.jcsg/jcsg

int numTexCoords = tMesh.getTexCoords().size() / tMesh.getTexCoordElementSize();
int numFaces = tMesh.getFaces().size() / tMesh.getFaceElementSize();
if (numPoints == 0 || numPoints * tMesh.getPointElementSize() != tMesh.getPoints().size()) {
  throw new AssertionError("Points array size is not correct: " + tMesh.getPoints().size());
if (numTexCoords == 0 || numTexCoords * tMesh.getTexCoordElementSize() != tMesh.getTexCoords().size()) {
  throw new AssertionError("TexCoords array size is not correct: " + tMesh.getPoints().size());
origin: eu.mihosoft.vrl.jcsg/jcsg

ObservableFloatArray texcoords = mesh.getTexCoords();
int texcoordElementSize = mesh.getTexCoordElementSize();
int os = texcoords.size() / texcoordElementSize;
check += mesh.getTexCoords().size() / texcoordElementSize;
origin: us.ihmc/ihmc-javafx-toolkit

triangleMesh.getTexCoords().addAll(convertToFloatArray(texturePoints));
triangleMesh.getFaces().addAll(indices);
triangleMesh.getFaceSmoothingGroups().addAll(new int[indices.length / triangleMesh.getFaceElementSize()]);
origin: us.ihmc/IHMCJavaFXToolkit

triangleMesh.getTexCoords().addAll(convertToFloatArray(texturePoints));
triangleMesh.getFaces().addAll(indices);
triangleMesh.getFaceSmoothingGroups().addAll(new int[indices.length / triangleMesh.getFaceElementSize()]);
origin: eu.mihosoft.vrl.jcsg/jcsg

    (float) firstVertex.pos.z());
mesh.getTexCoords().addAll(0); // texture (not covered)
mesh.getTexCoords().addAll(0);
    (float) secondVertex.pos.z());
mesh.getTexCoords().addAll(0); // texture (not covered)
mesh.getTexCoords().addAll(0);
mesh.getTexCoords().addAll(0); // texture (not covered)
mesh.getTexCoords().addAll(0);
origin: org.boofcv/boofcv-javafx

  @Override
  public void run() {
    Platform.runLater(()->{
      synchronized (lockSingles) {
        boolean firstPoint = meshSingles.getPoints().size() == 0;
        meshSingles.getPoints().setAll(pointSingles.data, 0, pointSingles.size);
        meshSingles.getFaces().setAll(facesSingles.data, 0, facesSingles.size);
        if (firstPoint) {
          meshSingles.getTexCoords().setAll(texCoords);
          final MeshView meshView = new MeshView(meshSingles);
          meshView.setMaterial(new PhongMaterial(Color.RED));
          meshView.setDepthTest(DepthTest.ENABLE);
          meshView.setDrawMode(DrawMode.FILL);
          meshView.setCullFace(CullFace.BACK);
          world.getChildren().addAll(meshView);
        }
        timerSingles = null;
        taskSingles = null;
      }
    });
  }
};
origin: org.boofcv/boofcv-javafx

mesh.getTexCoords().setAll(texCoords);
mesh.getFaces().setAll(faces);
origin: eu.mihosoft.vrl.jcsg/jcsg

mesh.getTexCoords().setAll(newUVs.toFloatArray());
mesh.getFaces().setAll(((IntegerArrayList) faces.subList(facesStart, faces.size())).toIntArray());
    + mesh.getTexCoords().size() / mesh.getTexCoordElementSize() + " uvs, "
    + mesh.getFaces().size() / mesh.getFaceElementSize() + " faces, "
    + mesh.getFaceSmoothingGroups().size() + " smoothing groups.");
origin: eu.mihosoft.vrl/vrl

    (float) firstVertex.getLocation().z);
mesh.getTexCoords().addAll(0); // texture (not covered)
mesh.getTexCoords().addAll(0);
    (float) secondVertex.getLocation().z);
mesh.getTexCoords().addAll(0); // texture (not covered)
mesh.getTexCoords().addAll(0);
    (float) thirdVertex.getLocation().z);
mesh.getTexCoords().addAll(0); // texture (not covered)
mesh.getTexCoords().addAll(0);
origin: eu.mihosoft.vrl.jcsg/jcsg

texCoordsDirty = false;
triangleMesh.getTexCoords().setAll(0,0);
triangleMesh.getTexCoords().setAll(pmesh.getTexCoords());
javafx.scene.shapeTriangleMeshgetTexCoords

Popular methods of TriangleMesh

  • <init>
  • getFaces
  • getPoints
  • getFaceElementSize
  • getFaceSmoothingGroups
  • getNormals
  • getPointElementSize
  • getTexCoordElementSize

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • getExternalFilesDir (Context)
  • setScale (BigDecimal)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Table (org.hibernate.mapping)
    A relational table
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now