Package nu3a.geometry

Examples of nu3a.geometry.N3Point3D


    if (vertexData.hasNext()) {
      clip = false;
      renderContext
          .beginDrawingMode(N3SoftwareRenderContext.N3_TRIANGLES);
      while (vertexData.hasNext()) {
        N3Point3D t1 = (N3Point3D) vertexData.next();
        N3Point3D t2 = (N3Point3D) vertexData.next();
        N3Point3D t3 = (N3Point3D) vertexData.next();
        v1.x = t1.x;
        v1.y = t1.y;
        v1.z = t1.z;
        v2.x = t2.x;
        v2.y = t2.y;
View Full Code Here


      N3NormalData normalData) {
    if (vertexData.hasNext()) {
      clip = false;
      renderContext.beginDrawingMode(N3SoftwareRenderContext.N3_LINES);
      while (vertexData.hasNext()) {
        N3Point3D t1 = (N3Point3D) vertexData.next();
        N3Point3D t2 = (N3Point3D) vertexData.next();
        v1.x = t1.x;
        v1.y = t1.y;
        v1.z = t1.z;
        v2.x = t2.x;
        v2.y = t2.y;
View Full Code Here

      N3NormalData normalData, N3TexCoordData texCoordData) {
    if (vertexData.hasNext()) {
      clip = false;
      renderContext.beginDrawingMode(N3SoftwareRenderContext.N3_LINES);
      while (vertexData.hasNext()) {
        N3Point3D t1 = (N3Point3D) vertexData.next();
        N3Point3D t2 = (N3Point3D) vertexData.next();
        v1.x = t1.x;
        v1.y = t1.y;
        v1.z = t1.z;
        v2.x = t2.x;
        v2.y = t2.y;
View Full Code Here

      N3NormalData normalData) {
    if (vertexData.hasNext()) {
      clip = false;
      renderContext.beginDrawingMode(N3SoftwareRenderContext.N3_POINTS);
      while (vertexData.hasNext()) {
        N3Point3D t1 = (N3Point3D) vertexData.next();
        v1.x = t1.x;
        v1.y = t1.y;
        v1.z = t1.z;
        cV1.x = v1.x;
        cV1.y = v1.y;
View Full Code Here

      N3NormalData normalData, N3TexCoordData coordData) {
    if (vertexData.hasNext()) {
      clip = false;
      renderContext.beginDrawingMode(N3SoftwareRenderContext.N3_POINTS);
      while (vertexData.hasNext()) {
        N3Point3D t1 = (N3Point3D) vertexData.next();
        v1.x = t1.x;
        v1.y = t1.y;
        v1.z = t1.z;
        cV1.x = v1.x;
        cV1.y = v1.y;
View Full Code Here

    }
    ambiental = new N3ColorRGBA(0.2f, 0.2f, 0.2f);
    diffuse = new N3ColorRGBA(0.8f, 0.8f, 0.8f);
    specular = new N3ColorRGBA(0, 0, 0, 0);
    dir = new N3Vector3D();
    pos = new N3Point3D();
    enable = true;
    d = new N3Vector3D();
    ambientTerm = new N3ColorRGBA();
    diffuseTerm = new N3ColorRGBA();
    specularTerm = new N3ColorRGBA();
View Full Code Here

    float dx = persp * ((p.x - v.x) / (v.width / 2.0f) - 1.0f)
        / internalCamera.getAspect();
    float dy = -persp * ((p.y - v.y) / (v.height / 2.0f) - 1.0f)
        / internalCamera.getAspect();

    N3Point3D src = new N3Point3D(dx * internalCamera.getZNear(), dy
        * internalCamera.getZNear(), -internalCamera.getZNear());
    N3Point3D dest = new N3Point3D(dx * internalCamera.getZFar(), dy
        * internalCamera.getZFar(), -internalCamera.getZFar());

    src = getAccMatrix().mult(src);
    dest = getAccMatrix().mult(dest);

View Full Code Here

    public DistanceSorter(N3Point3D p) {
      this.p = p;
    }

    public int compare(Object o1, Object o2) {
      N3Point3D node1Pos = ((N3Node) o1).getPosition();
      N3Point3D node2Pos = ((N3Node) o2).getPosition();
      N3Vector3D node1Vector = new N3Vector3D(node1Pos.x - p.x,
          node1Pos.y - p.y, node1Pos.z - p.z);
      N3Vector3D node2Vector = new N3Vector3D(node2Pos.x - p.x,
          node2Pos.y - p.y, node2Pos.z - p.z);
      float node1Dist = node1Vector.length();
View Full Code Here

TOP

Related Classes of nu3a.geometry.N3Point3D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.