unwrap
Class UTriangle

java.lang.Object
  extended by unwrap.UTriangle

public class UTriangle
extends java.lang.Object


Field Summary
 UPoint a
           
 UPoint b
           
 UPoint c
           
 
Constructor Summary
UTriangle(UPoint _a, UPoint _b, UPoint _c, int _id)
          initialize the triangle and give the referred points and an unique triangle id.
 
Method Summary
 void draw2d(Vec3D pos)
          draw the flatten triangle in 2d on the given position.
 void draw2d(Vec3D pos, processing.core.PGraphics pg)
          draw the flatten triangle in 2d on the given position.
 void draw2d(Vec3D pos, Vec3D dir, processing.core.PGraphics pg)
          draw the flatten triangle in 2d on the given position and pass a Vector for its rotation, direction.
 void draw2d(Vec3D pos, Vec3D dir, USide n)
          draw the flatten triangle in 2d on the given position and pass a Vector for its rotation, direction.
 void draw2d(Vec3D pos, Vec3D dir, USide n, processing.core.PGraphics pg)
          draw the flatten triangle in 2d on the given position and pass a Vector for its rotation, direction.
 void draw3d()
          draw the triangle in 3d.
 void draw3d(processing.core.PGraphics pg)
          draw the triangle in 3d.
 void drawNeighborInfoText(float size)
          draw assembling info text.
 void drawNeighborInfoText(float size, processing.core.PGraphics pg)
          draw assembling info text.
 void drawNeighborInfoText(processing.core.PGraphics pg, processing.core.PFont font, float size)
          draw assembling info text.
 void drawNormal()
          draw the triangle normals with default length.
 void drawNormal(float scale)
          draw the triangle normals with given length.
 void drawNormal(processing.core.PGraphics pg, float scale)
          draw the triangle normals with given length.
 Vec3D[] get2d(Vec3D pos)
          get the flatten trianglepoints from to the given position.
 Vec3D[] get2d(Vec3D pos, Vec3D dir)
          get the flatten trianglepoints from to the given position and its rotation, direction.
 Vec3D[] get2d(Vec3D pos, Vec3D dir, USide n)
          get the flatten trianglepoints from to the given position and its rotation, direction.
 UPoint getA2d()
          get the triangle Point A in 2d
 USide getAB()
          get the triangle side ab
 Vec3D getABBisector2d()
          get the triangle bisector on side ab in 2d
 Vec3D getABBisector3d()
          get the triangle bisector on side ab
 float getAlpha()
          get the triangle angle alpha
 UPoint getB2d()
          get the triangle Point B in 2d
 USide getBC()
          get the triangle side bc
 Vec3D getBCBisector2d()
          get the triangle bisector on side bc in 2d
 Vec3D getBCBisector3d()
          get the triangle bisector on side bc
 float getBeta()
          get the triangle angle beta
 UPoint getC2d()
          get the triangle Point C in 2d
 USide getCA()
          get the triangle side ca
 Vec3D getCABisector2d()
          get the triangle bisector on side ca in 2d
 Vec3D getCABisector3d()
          get the triangle bisector on side ca
 Vec3D getCenter2d()
          get the triangle center in 2d
 Vec3D getCenter3d()
          get the triangle center in 3d
 float getGamma()
          get the triangle angle gamma
 int getID()
          get the triangle id
 Vec3D getNormal()
          get the Triangle normal.
 Vec3D getNormal(Vec3D addv, UPoint p1, UPoint p2, UPoint p3, float scale)
          get the Normal from given Points.
 void update()
          update the triangle.
 void updatePoints(UPoint[] _points)
          update the triangle points
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a

public UPoint a

b

public UPoint b

c

public UPoint c
Constructor Detail

UTriangle

public UTriangle(UPoint _a,
                 UPoint _b,
                 UPoint _c,
                 int _id)
initialize the triangle and give the referred points and an unique triangle id.

Method Detail

update

public void update()
update the triangle.


getID

public int getID()
get the triangle id


getBC

public USide getBC()
get the triangle side bc


getCA

public USide getCA()
get the triangle side ca


getAB

public USide getAB()
get the triangle side ab


getAlpha

public float getAlpha()
get the triangle angle alpha


getBeta

public float getBeta()
get the triangle angle beta


getGamma

public float getGamma()
get the triangle angle gamma


getCenter3d

public Vec3D getCenter3d()
get the triangle center in 3d


getBCBisector3d

public Vec3D getBCBisector3d()
get the triangle bisector on side bc


getCABisector3d

public Vec3D getCABisector3d()
get the triangle bisector on side ca


getABBisector3d

public Vec3D getABBisector3d()
get the triangle bisector on side ab


getA2d

public UPoint getA2d()
get the triangle Point A in 2d


getB2d

public UPoint getB2d()
get the triangle Point B in 2d


getC2d

public UPoint getC2d()
get the triangle Point C in 2d


getCenter2d

public Vec3D getCenter2d()
get the triangle center in 2d


getBCBisector2d

public Vec3D getBCBisector2d()
get the triangle bisector on side bc in 2d


getCABisector2d

public Vec3D getCABisector2d()
get the triangle bisector on side ca in 2d


getABBisector2d

public Vec3D getABBisector2d()
get the triangle bisector on side ab in 2d


updatePoints

public void updatePoints(UPoint[] _points)
update the triangle points


draw3d

public void draw3d()
draw the triangle in 3d.


draw3d

public void draw3d(processing.core.PGraphics pg)
draw the triangle in 3d.


drawNormal

public void drawNormal()
draw the triangle normals with default length.


drawNormal

public void drawNormal(float scale)
draw the triangle normals with given length.


drawNormal

public void drawNormal(processing.core.PGraphics pg,
                       float scale)
draw the triangle normals with given length.


getNormal

public Vec3D getNormal()
get the Triangle normal.


getNormal

public Vec3D getNormal(Vec3D addv,
                       UPoint p1,
                       UPoint p2,
                       UPoint p3,
                       float scale)
get the Normal from given Points.


draw2d

public void draw2d(Vec3D pos)
draw the flatten triangle in 2d on the given position.


draw2d

public void draw2d(Vec3D pos,
                   processing.core.PGraphics pg)
draw the flatten triangle in 2d on the given position.


draw2d

public void draw2d(Vec3D pos,
                   Vec3D dir,
                   processing.core.PGraphics pg)
draw the flatten triangle in 2d on the given position and pass a Vector for its rotation, direction.


draw2d

public void draw2d(Vec3D pos,
                   Vec3D dir,
                   USide n)
draw the flatten triangle in 2d on the given position and pass a Vector for its rotation, direction. the own, given Side a,b or c define the bottom of the triangle.


draw2d

public void draw2d(Vec3D pos,
                   Vec3D dir,
                   USide n,
                   processing.core.PGraphics pg)
draw the flatten triangle in 2d on the given position and pass a Vector for its rotation, direction. the own, given Side a,b or c define the bottom of the triangle.


get2d

public Vec3D[] get2d(Vec3D pos)
get the flatten trianglepoints from to the given position.


get2d

public Vec3D[] get2d(Vec3D pos,
                     Vec3D dir)
get the flatten trianglepoints from to the given position and its rotation, direction.


get2d

public Vec3D[] get2d(Vec3D pos,
                     Vec3D dir,
                     USide n)
get the flatten trianglepoints from to the given position and its rotation, direction. the own, given Side a,b or c define the bottom of the triangle.


drawNeighborInfoText

public void drawNeighborInfoText(float size)
draw assembling info text.


drawNeighborInfoText

public void drawNeighborInfoText(float size,
                                 processing.core.PGraphics pg)
draw assembling info text.


drawNeighborInfoText

public void drawNeighborInfoText(processing.core.PGraphics pg,
                                 processing.core.PFont font,
                                 float size)
draw assembling info text.



processing library unwrappingLib by Martin Fuchs. (c) 2009