Revision 4ba0d1df
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/library/mesh/MeshBase.java | ||
---|---|---|
644 | 644 |
} |
645 | 645 |
} |
646 | 646 |
|
647 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
648 |
/** |
|
649 |
* Not part of public API, do not document (public only because has to be used from the main package) |
|
650 |
* |
|
651 |
* @y.exclude |
|
652 |
*/ |
|
653 |
public void printTexComponent(int comp) |
|
654 |
{ |
|
655 |
if( comp>=0 && comp<getNumTexComponents() ) |
|
656 |
{ |
|
657 |
int beg = comp>0 ? mTexComponent.get(comp-1).mEndIndex+1 : 0; |
|
658 |
int end = mTexComponent.get(comp).mEndIndex; |
|
659 |
StringBuilder sb = new StringBuilder(); |
|
660 |
|
|
661 |
for( int vert=beg; vert<=end; vert++) |
|
662 |
{ |
|
663 |
sb.append('('); |
|
664 |
sb.append(mVertAttribs1[VERT1_ATTRIBS*vert+POS_ATTRIB ]); |
|
665 |
sb.append(','); |
|
666 |
sb.append(mVertAttribs1[VERT1_ATTRIBS*vert+POS_ATTRIB+1]); |
|
667 |
sb.append(','); |
|
668 |
sb.append(mVertAttribs1[VERT1_ATTRIBS*vert+POS_ATTRIB+2]); |
|
669 |
sb.append(") "); |
|
670 |
} |
|
671 |
|
|
672 |
Log.d("mesh", sb.toString() ); |
|
673 |
} |
|
674 |
} |
|
675 |
|
|
647 | 676 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
648 | 677 |
/** |
649 | 678 |
* Not part of public API, do not document (public only because has to be used from the main package) |
Also available in: Unified diff
New debug to print a whole component of a mesh.