Project

General

Profile

Download (2.91 KB) Statistics
| Branch: | Revision:

distorted-objectlib / src / main / java / org / distorted / objectlib / helpers / ObjectFaceShape.java @ df3dcf97

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[][] mCorners;
18
  private final int[] mCornerIndices;
19
  private final float[][] mCenters;
20
  private final int[] mCenterIndices;
21
  private final float[] mConvexityCenter;
22
  private final float[][] mBands;
23

    
24
///////////////////////////////////////////////////////////////////////////////////////////////////
25

    
26
  public ObjectFaceShape(float[][] bands, int[] bandIndices, float[][] corners, int[] cornIndices,
27
                         float[][] centers, int[] centIndices, float[] convexityCenter)
28
    {
29
    mBands           = bands;
30
    mBandIndices     = bandIndices;
31
    mCorners         = corners;
32
    mCornerIndices   = cornIndices;
33
    mCenters         = centers;
34
    mCenterIndices   = centIndices;
35
    mConvexityCenter = convexityCenter;
36
    }
37

    
38
///////////////////////////////////////////////////////////////////////////////////////////////////
39

    
40
  public float[][] getBands()
41
    {
42
    return mBands;
43
    }
44

    
45
///////////////////////////////////////////////////////////////////////////////////////////////////
46

    
47
  public int[] getBandIndices()
48
    {
49
    return mBandIndices;
50
    }
51

    
52
///////////////////////////////////////////////////////////////////////////////////////////////////
53

    
54
  public float[][] getCorners()
55
    {
56
    return mCorners;
57
    }
58

    
59
///////////////////////////////////////////////////////////////////////////////////////////////////
60

    
61
  public int[] getCornerIndices()
62
    {
63
    return mCornerIndices;
64
    }
65

    
66
///////////////////////////////////////////////////////////////////////////////////////////////////
67

    
68
  public float[][] getCenters()
69
    {
70
    return mCenters;
71
    }
72

    
73
///////////////////////////////////////////////////////////////////////////////////////////////////
74

    
75
  public int[] getCenterIndices()
76
    {
77
    return mCenterIndices;
78
    }
79

    
80
///////////////////////////////////////////////////////////////////////////////////////////////////
81

    
82
  public float[] getConvexityCenter()
83
    {
84
    return mConvexityCenter;
85
    }
86
  }
(6-6/12)