1
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2
|
// Copyright 2021 Leszek Koltunski //
|
3
|
// //
|
4
|
// This file is part of Magic Cube. //
|
5
|
// //
|
6
|
// Magic Cube is proprietary software licensed under an EULA which you should have received //
|
7
|
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html //
|
8
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
9
|
|
10
|
package org.distorted.objectlib.helpers;
|
11
|
|
12
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
13
|
|
14
|
public class ObjectFaceShape
|
15
|
{
|
16
|
private final int[] mBandIndices;
|
17
|
private final float[] mConvexityCenter;
|
18
|
private final float[][] mBands;
|
19
|
|
20
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
21
|
|
22
|
public ObjectFaceShape(float[][] bands, int[] bandIndices, float[] convexityCenter)
|
23
|
{
|
24
|
mBands = bands;
|
25
|
mBandIndices = bandIndices;
|
26
|
mConvexityCenter = convexityCenter;
|
27
|
}
|
28
|
|
29
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
30
|
|
31
|
public float[][] getBands()
|
32
|
{
|
33
|
return mBands;
|
34
|
}
|
35
|
|
36
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
37
|
|
38
|
public int[] getBandIndices()
|
39
|
{
|
40
|
return mBandIndices;
|
41
|
}
|
42
|
|
43
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
44
|
|
45
|
public float[] getConvexityCenter()
|
46
|
{
|
47
|
return mConvexityCenter;
|
48
|
}
|
49
|
}
|