cz.cuni.jagrlib.iface
Interface EulerOperators

All Superinterfaces:
Property

public interface EulerOperators
extends Property

Interface for 3D scene editing using Euler operators:

Euler equation: V - E + F = 2 * (S - G) + L, where:

Since:
0.10
See Also:
Brep, EulerOperators.java

Field Summary
 
Fields inherited from interface cz.cuni.jagrlib.iface.Property
LOGGING, STATISTICS, TEXT_DESCRIPTION
 
Method Summary
 void Kef(int e, int f)
          Kill edge, face.
 void KlhMf(int[] f, int fh, int l)
          Kill loop, hole, make face.
 void KlMe(int[] e, int v1, int v2, int f)
          Kill loop, make edge.
 void Kve(int v, int e)
          Kill vertex, edge.
 void Kvfs(int v, int f, int s)
          Kill vertex, face, solid.
 void Mef(int[] ef, int v1, int v2)
          Make edge, face.
 void MlhKf(int fp, int fd)
          Make loop, hole, kill face.
 void MlKe(int e)
          Make loop, kill edge.
 void Mve(int[] ve, int v1, int fl, int fr)
          Make vertex, edge.
 void Mvfs(int[] vfs)
          Make vertex, face, solid.
 
Methods inherited from interface cz.cuni.jagrlib.iface.Property
commit, get, set
 

Method Detail

Mvfs

void Mvfs(int[] vfs)
Make vertex, face, solid. Creates a new (empty) shell containing a new vertex and face.

Parameters:
vfs - Pre-allocated array to hold handles of the newly created vertex, face and solid.
See Also:
Kvfs(int, int, int)

Kvfs

void Kvfs(int v,
          int f,
          int s)
Kill vertex, face, solid. Eliminates the rest of the given shell.

Parameters:
v - Vertex handle to be deleted.
f - Face handle to be deleted.
s - Solid handle to be deleted.
See Also:
Mvfs(int[])

Mve

void Mve(int[] ve,
         int v1,
         int fl,
         int fr)
Make vertex, edge. Add a new vetrex through a new edge | vertex split.

Parameters:
ve - Pre-allocated array to hold handles of the newly created vertex and edge.
v1 - Handle of the 1st (already existing) vertex.
fl - Handle of the left face for the new edge.
fr - Handle of the right face for the new edge (should be the same as fl).
See Also:
Kve(int, int)

Kve

void Kve(int v,
         int e)
Kill vertex, edge. Edge collapse.

Parameters:
v - Vertex handle to be deleted.
e - Edge handle to be deleted.
See Also:
Mve(int[], int, int, int)

Mef

void Mef(int[] ef,
         int v1,
         int v2)
Make edge, face. Face split.

Parameters:
ef - Pre-allocated array to hold handles of the newly created edge and face.
v1 - Handle of the 1st (already existing) vertex.
v2 - Handle of the 2nd (already existing) vertex.
See Also:
Kef(int, int)

Kef

void Kef(int e,
         int f)
Kill edge, face. Face join.

Parameters:
e - Edge handle to be deleted.
f - Face handle to be deleted.
See Also:
Mef(int[], int, int)

MlKe

void MlKe(int e)
Make loop, kill edge. Creates a new inner loop instead of discarded virtual edge (loop split).

Parameters:
e - Handle of the virtual edge to be deleted.
See Also:
KlMe(int[], int, int, int)

KlMe

void KlMe(int[] e,
          int v1,
          int v2,
          int f)
Kill loop, make edge. Merges two loops (inner and outer one) using a new virtual edge.

Parameters:
e - Pre-allocated array to hold handle of the newly created virtual edge.
v1 - Handle of the 1st (already existing) vertex.
v2 - Handle of the 2nd (already existing) vertex.
f - Face handle in which the virtual edge will be created.
See Also:
MlKe(int)

MlhKf

void MlhKf(int fp,
           int fd)
Make loop, hole, kill face. Punches a hole through the given (stil unconcerned) face, on the other side one existing face will be deleted. Doesn't affect edges and vertices at all..

Parameters:
fp - Handle of the face to be punched (a new loop will be created in it).
fd - Handle of the face to be deleted (its perimeter will turn into a new loop on the other side).
See Also:
KlhMf(int[], int, int)

KlhMf

void KlhMf(int[] f,
           int fh,
           int l)
Kill loop, hole, make face. Closes one existing hole using a new stopper-face. Doesn't affect edges and vertices at all..

Parameters:
f - Pre-allocated array to hold handle of the newly created stopper-face.
fh - Handle of the face containing hole (loop) to be closed.
l - Ordinal number of the loop within the face.
See Also:
MlhKf(int, int)