Package org.blender.dna
Class MEdge
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.MEdge
-
public class MEdge extends CFacade
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD__bweight
Field descriptor (offset) for struct member 'bweight'.static long[]
__DNA__FIELD__crease
Field descriptor (offset) for struct member 'crease'.static long[]
__DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.static long[]
__DNA__FIELD__v1
Field descriptor (offset) for struct member 'v1'.static long[]
__DNA__FIELD__v2
Field descriptor (offset) for struct member 'v2'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct MEdge.-
Fields inherited from class org.cakelab.blender.nio.CFacade
__io__address, __io__arch_index, __io__block, __io__blockTable, __io__pointersize
-
-
Constructor Summary
Constructors Modifier Constructor Description MEdge(long __address, Block __block, BlockTable __blockTable)
protected
MEdge(MEdge that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<MEdge>
__io__addressof()
Instantiates a pointer on this instance.byte
getBweight()
Get method for struct member 'bweight'.byte
getCrease()
Get method for struct member 'crease'.short
getFlag()
Get method for struct member 'flag'.int
getV1()
Get method for struct member 'v1'.int
getV2()
Get method for struct member 'v2'.void
setBweight(byte bweight)
Set method for struct member 'bweight'.void
setCrease(byte crease)
Set method for struct member 'crease'.void
setFlag(short flag)
Set method for struct member 'flag'.void
setV1(int v1)
Set method for struct member 'v1'.void
setV2(int v2)
Set method for struct member 'v2'.-
Methods inherited from class org.cakelab.blender.nio.CFacade
__io__addressof, __io__addressof, __io__equals, __io__generic__copy, __io__generic__copy, __io__instanceof, __io__native__copy, __io__newInstance, __io__same__encoding, __io__sizeof, __io__sizeof, __io__subclassof, equals, hashCode
-
-
-
-
Field Detail
-
__DNA__SDNA_INDEX
public static final int __DNA__SDNA_INDEX
This is the sdna index of the struct MEdge.It is required when allocating a new block to store data for MEdge.
- See Also:
StructDNA
,BlockTable
, Constant Field Values
-
__DNA__FIELD__v1
public static final long[] __DNA__FIELD__v1
Field descriptor (offset) for struct member 'v1'.Field Documentation
Java .Blend
First vertex of the edge (index in vertex array).Blender Source Code
Un-ordered vertex indices (cannot match).
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MEdge medge = ...; CPointer<Object> p = medge.__dna__addressof(MEdge.__DNA__FIELD__v1); CPointer<Integer> p_v1 = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'v1'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__v2
public static final long[] __DNA__FIELD__v2
Field descriptor (offset) for struct member 'v2'.Field Documentation
Java .Blend
Second vertex of the edge (index in vertex array).Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MEdge medge = ...; CPointer<Object> p = medge.__dna__addressof(MEdge.__DNA__FIELD__v2); CPointer<Integer> p_v2 = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'v2'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__crease
public static final long[] __DNA__FIELD__crease
Field descriptor (offset) for struct member 'crease'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MEdge medge = ...; CPointer<Object> p = medge.__dna__addressof(MEdge.__DNA__FIELD__crease); CPointer<Byte> p_crease = p.cast(new Class[]{Byte.class});
Metadata
- Field: 'crease'
- Signature: 'char'
- Actual Size (32bit/64bit): 1/1
-
__DNA__FIELD__bweight
public static final long[] __DNA__FIELD__bweight
Field descriptor (offset) for struct member 'bweight'.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MEdge medge = ...; CPointer<Object> p = medge.__dna__addressof(MEdge.__DNA__FIELD__bweight); CPointer<Byte> p_bweight = p.cast(new Class[]{Byte.class});
Metadata
- Field: 'bweight'
- Signature: 'char'
- Actual Size (32bit/64bit): 1/1
-
__DNA__FIELD__flag
public static final long[] __DNA__FIELD__flag
Field descriptor (offset) for struct member 'flag'.Field Documentation
Java .Blend
Values
// SELECT = (1 << 0), ME_EDGEDRAW = (1 << 1), ME_SEAM = (1 << 2), // ME_HIDE = (1 << 4), ME_EDGERENDER = (1 << 5), ME_LOOSEEDGE = (1 << 7), ME_EDGE_TMP_TAG = (1 << 8), ME_SHARP = (1 << 9),
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MEdge medge = ...; CPointer<Object> p = medge.__dna__addressof(MEdge.__DNA__FIELD__flag); CPointer<Short> p_flag = p.cast(new Class[]{Short.class});
Metadata
- Field: 'flag'
- Signature: 'short'
- Actual Size (32bit/64bit): 2/2
-
-
Constructor Detail
-
MEdge
public MEdge(long __address, Block __block, BlockTable __blockTable)
-
MEdge
protected MEdge(MEdge that)
-
-
Method Detail
-
getV1
public int getV1() throws java.io.IOException
Get method for struct member 'v1'.Field Documentation
Java .Blend
First vertex of the edge (index in vertex array).Blender Source Code
Un-ordered vertex indices (cannot match).
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__v1
-
setV1
public void setV1(int v1) throws java.io.IOException
Set method for struct member 'v1'.Field Documentation
Java .Blend
First vertex of the edge (index in vertex array).Blender Source Code
Un-ordered vertex indices (cannot match).
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__v1
-
getV2
public int getV2() throws java.io.IOException
Get method for struct member 'v2'.Field Documentation
Java .Blend
Second vertex of the edge (index in vertex array).- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__v2
-
setV2
public void setV2(int v2) throws java.io.IOException
Set method for struct member 'v2'.Field Documentation
Java .Blend
Second vertex of the edge (index in vertex array).- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__v2
-
getCrease
public byte getCrease() throws java.io.IOException
Get method for struct member 'crease'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__crease
-
setCrease
public void setCrease(byte crease) throws java.io.IOException
Set method for struct member 'crease'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__crease
-
getBweight
public byte getBweight() throws java.io.IOException
Get method for struct member 'bweight'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__bweight
-
setBweight
public void setBweight(byte bweight) throws java.io.IOException
Set method for struct member 'bweight'.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__bweight
-
getFlag
public short getFlag() throws java.io.IOException
Get method for struct member 'flag'.Field Documentation
Java .Blend
Values
// SELECT = (1 << 0), ME_EDGEDRAW = (1 << 1), ME_SEAM = (1 << 2), // ME_HIDE = (1 << 4), ME_EDGERENDER = (1 << 5), ME_LOOSEEDGE = (1 << 7), ME_EDGE_TMP_TAG = (1 << 8), ME_SHARP = (1 << 9),
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__flag
-
setFlag
public void setFlag(short flag) throws java.io.IOException
Set method for struct member 'flag'.Field Documentation
Java .Blend
Values
// SELECT = (1 << 0), ME_EDGEDRAW = (1 << 1), ME_SEAM = (1 << 2), // ME_HIDE = (1 << 4), ME_EDGERENDER = (1 << 5), ME_LOOSEEDGE = (1 << 7), ME_EDGE_TMP_TAG = (1 << 8), ME_SHARP = (1 << 9),
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__flag
-
-