Tabnine Logo
TriangleMesh.getFaces
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: eu.mihosoft.vrl.jcsg/jcsg

int numPoints = tMesh.getPoints().size() / tMesh.getPointElementSize();
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());
  throw new AssertionError("TexCoords array size is not correct: " + tMesh.getPoints().size());
if (numFaces == 0 || numFaces * tMesh.getFaceElementSize() != tMesh.getFaces().size()) {
  throw new AssertionError("Faces array size is not correct: " + tMesh.getPoints().size());
  throw new AssertionError("FaceSmoothingGroups array size is not correct: " + tMesh.getPoints().size() + ", numFaces = " + numFaces);
ObservableIntegerArray faces = tMesh.getFaces();
for (int i = 0; i < faces.size(); i += 2) {
  int pIndex = faces.get(i);
origin: eu.mihosoft.vrl.jcsg/jcsg

texcoords.trimToSize();
ObservableIntegerArray faces = mesh.getFaces();
for (int i = 1; i < faces.size(); i += 2) {
  faces.set(i, reindex.get(faces.get(i)));
origin: eu.mihosoft.vrl.jcsg/jcsg

points.trimToSize();
ObservableIntegerArray faces = mesh.getFaces();
for (int i = 0; i < faces.size(); i += 2) {
  faces.set(i, reindex.get(faces.get(i)));
origin: us.ihmc/ihmc-javafx-toolkit

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

triangleMesh.getPoints().addAll(convertToFloatArray(vertices));
triangleMesh.getTexCoords().addAll(convertToFloatArray(texturePoints));
triangleMesh.getFaces().addAll(indices);
triangleMesh.getFaceSmoothingGroups().addAll(new int[indices.length / triangleMesh.getFaceElementSize()]);
triangleMesh.getNormals().addAll(convertToFloatArray(normals));
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.getPoints().setAll(points);
mesh.getTexCoords().setAll(texCoords);
mesh.getFaces().setAll(faces);
origin: eu.mihosoft.vrl.jcsg/jcsg

mesh.getPoints().setAll(newVertexes.toFloatArray());
mesh.getTexCoords().setAll(newUVs.toFloatArray());
mesh.getFaces().setAll(((IntegerArrayList) faces.subList(facesStart, faces.size())).toIntArray());
    "Added mesh '" + key + "' of " + mesh.getPoints().size() / mesh.getPointElementSize() + " vertexes, "
    + mesh.getTexCoords().size() / mesh.getTexCoordElementSize() + " uvs, "
    + mesh.getFaces().size() / mesh.getFaceElementSize() + " faces, "
    + mesh.getFaceSmoothingGroups().size() + " smoothing groups.");
log("material diffuse color = " + ((PhongMaterial) material).getDiffuseColor());
origin: eu.mihosoft.vrl.jcsg/jcsg

mesh.getTexCoords().addAll(0);
mesh.getFaces().addAll(
origin: eu.mihosoft.vrl.jcsg/jcsg

triangleMesh.getFaces().setAll(facesArray);
triangleMesh.getFaceSmoothingGroups().clear();
triangleMesh.getFaces().setAll(facesArray);
triangleMesh.getFaceSmoothingGroups().setAll(smoothingGroupsArray);
origin: eu.mihosoft.vrl.jcsg/jcsg

for (MeshView meshView : meshViews) {
  TriangleMesh mesh = (TriangleMesh) meshView.getMesh();
  ObservableIntegerArray faces = mesh.getFaces();
  ObservableIntegerArray faceSmoothingGroups = mesh.getFaceSmoothingGroups();
  ObservableFloatArray points = mesh.getPoints();
origin: eu.mihosoft.vrl/vrl

mesh.getFaces().addAll(
javafx.scene.shapeTriangleMeshgetFaces

Popular methods of TriangleMesh

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

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • addToBackStack (FragmentTransaction)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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