Package org.blender.dna
Class MLoop
- java.lang.Object
-
- org.cakelab.blender.nio.CFacade
-
- org.blender.dna.MLoop
-
public class MLoop extends CFacade
Generated facet for DNA struct type 'MLoop'.Class Documentation
Java .Blend
A loop element defined by a vertex and an edge. A loop is a face of the 3D object in Blender. A full loop (face) is defined by a set of loop entries, where each entry references a vertex and the adjacent edge in clock order. Thus, for each loop entry the system knows which side is front facingBlender Source Code
Mesh
Loops. Each loop represents the corner of a polygon (MPoly
).Typically accessed from #Mesh.mloop.
-
-
Field Summary
Fields Modifier and Type Field Description static long[]
__DNA__FIELD__e
Field descriptor (offset) for struct member 'e'.static long[]
__DNA__FIELD__v
Field descriptor (offset) for struct member 'v'.static int
__DNA__SDNA_INDEX
This is the sdna index of the struct MLoop.-
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 MLoop(long __address, Block __block, BlockTable __blockTable)
protected
MLoop(MLoop that)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CPointer<MLoop>
__io__addressof()
Instantiates a pointer on this instance.int
getE()
Get method for struct member 'e'.int
getV()
Get method for struct member 'v'.void
setE(int e)
Set method for struct member 'e'.void
setV(int v)
Set method for struct member 'v'.-
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 MLoop.It is required when allocating a new block to store data for MLoop.
- See Also:
StructDNA
,BlockTable
, Constant Field Values
-
__DNA__FIELD__v
public static final long[] __DNA__FIELD__v
Field descriptor (offset) for struct member 'v'.Field Documentation
Java .Blend
Associated vertex (index in vertex array).Blender Source Code
Vertex index.
Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MLoop mloop = ...; CPointer<Object> p = mloop.__dna__addressof(MLoop.__DNA__FIELD__v); CPointer<Integer> p_v = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'v'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
__DNA__FIELD__e
public static final long[] __DNA__FIELD__e
Field descriptor (offset) for struct member 'e'.Field Documentation
Java .Blend
Associated edge (index in edge array).Blender Source Code
Edge index.
Note
The e here is because we want to move away from relying on edge hashes.
The e here is because we want to move away from relying on edge hashes.Pointer Arithmetics
This is how you get a reference on the corresponding field in the struct:
MLoop mloop = ...; CPointer<Object> p = mloop.__dna__addressof(MLoop.__DNA__FIELD__e); CPointer<Integer> p_e = p.cast(new Class[]{Integer.class});
Metadata
- Field: 'e'
- Signature: 'int'
- Actual Size (32bit/64bit): 4/4
-
-
Constructor Detail
-
MLoop
public MLoop(long __address, Block __block, BlockTable __blockTable)
-
MLoop
protected MLoop(MLoop that)
-
-
Method Detail
-
getV
public int getV() throws java.io.IOException
Get method for struct member 'v'.Field Documentation
Java .Blend
Associated vertex (index in vertex array).Blender Source Code
Vertex index.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__v
-
setV
public void setV(int v) throws java.io.IOException
Set method for struct member 'v'.Field Documentation
Java .Blend
Associated vertex (index in vertex array).Blender Source Code
Vertex index.
- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__v
-
getE
public int getE() throws java.io.IOException
Get method for struct member 'e'.Field Documentation
Java .Blend
Associated edge (index in edge array).Blender Source Code
Edge index.
Note
The e here is because we want to move away from relying on edge hashes.
The e here is because we want to move away from relying on edge hashes.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__e
-
setE
public void setE(int e) throws java.io.IOException
Set method for struct member 'e'.Field Documentation
Java .Blend
Associated edge (index in edge array).Blender Source Code
Edge index.
Note
The e here is because we want to move away from relying on edge hashes.
The e here is because we want to move away from relying on edge hashes.- Throws:
java.io.IOException
- See Also:
__DNA__FIELD__e
-
-