Skip to content

Commit ba7ba00

Browse files
committed
Reformat Utility function code.
1 parent 0cc012e commit ba7ba00

25 files changed

+16378
-15286
lines changed

Plugins/HoudiniEngineUnity/Scripts/Utility/HEU_Extensions.cs

Lines changed: 241 additions & 241 deletions
Large diffs are not rendered by default.

Plugins/HoudiniEngineUnity/Scripts/Utility/HEU_GeneralUtility.cs

Lines changed: 2270 additions & 2186 deletions
Large diffs are not rendered by default.

Plugins/HoudiniEngineUnity/Scripts/Utility/HEU_GenerateGeoCache.cs

Lines changed: 2598 additions & 2396 deletions
Large diffs are not rendered by default.
Lines changed: 57 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
/*
2-
* Copyright (c) <2020> Side Effects Software Inc.
3-
* All rights reserved.
4-
*
5-
* Redistribution and use in source and binary forms, with or without
6-
* modification, are permitted provided that the following conditions are met:
7-
*
8-
* 1. Redistributions of source code must retain the above copyright notice,
9-
* this list of conditions and the following disclaimer.
10-
*
11-
* 2. The name of Side Effects Software may not be used to endorse or
12-
* promote products derived from this software without specific prior
13-
* written permission.
14-
*
15-
* THIS SOFTWARE IS PROVIDED BY SIDE EFFECTS SOFTWARE "AS IS" AND ANY EXPRESS
16-
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17-
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
18-
* NO EVENT SHALL SIDE EFFECTS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
19-
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
20-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
21-
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
22-
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
24-
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25-
*/
2+
* Copyright (c) <2020> Side Effects Software Inc.
3+
* All rights reserved.
4+
*
5+
* Redistribution and use in source and binary forms, with or without
6+
* modification, are permitted provided that the following conditions are met:
7+
*
8+
* 1. Redistributions of source code must retain the above copyright notice,
9+
* this list of conditions and the following disclaimer.
10+
*
11+
* 2. The name of Side Effects Software may not be used to endorse or
12+
* promote products derived from this software without specific prior
13+
* written permission.
14+
*
15+
* THIS SOFTWARE IS PROVIDED BY SIDE EFFECTS SOFTWARE "AS IS" AND ANY EXPRESS
16+
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17+
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
18+
* NO EVENT SHALL SIDE EFFECTS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
19+
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
20+
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
21+
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
22+
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
24+
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25+
*/
2626

2727
using System;
2828
using System.Collections.Generic;
@@ -35,51 +35,50 @@ namespace HoudiniEngineUnity
3535
/// </summary>
3636
public class HEU_GeoGroup : IComparable<HEU_GeoGroup>
3737
{
38-
public string _groupName;
38+
public string _groupName;
3939

40-
// The submeshes that are part of this group, with their mesh ID (material)
41-
public Dictionary<int, HEU_MeshData> _subMeshesMap = new Dictionary<int, HEU_MeshData>();
40+
// The submeshes that are part of this group, with their mesh ID (material)
41+
public Dictionary<int, HEU_MeshData> _subMeshesMap = new Dictionary<int, HEU_MeshData>();
4242

43-
// We'll be generating the normals if they're not provided by Houdini
44-
// For every vertex, we'll hold list of other vertices that it shares faces with (ie. connected to)
45-
public List<HEU_VertexEntry>[] _sharedNormalIndices;
43+
// We'll be generating the normals if they're not provided by Houdini
44+
// For every vertex, we'll hold list of other vertices that it shares faces with (ie. connected to)
45+
public List<HEU_VertexEntry>[] _sharedNormalIndices;
4646

47-
public int CompareTo(HEU_GeoGroup other)
48-
{
49-
// Null means this object is greater
50-
if (other == null)
51-
{
52-
return 1;
53-
}
47+
public int CompareTo(HEU_GeoGroup other)
48+
{
49+
// Null means this object is greater
50+
if (other == null)
51+
{
52+
return 1;
53+
}
5454

55-
return this._groupName.CompareTo(other._groupName);
56-
}
55+
return this._groupName.CompareTo(other._groupName);
56+
}
5757

58-
public void SetupNormalIndices(int indicesCount)
59-
{
60-
_sharedNormalIndices = new List<HEU_VertexEntry>[indicesCount];
61-
for (int i = 0; i < indicesCount; ++i)
62-
{
63-
_sharedNormalIndices[i] = new List<HEU_VertexEntry>();
64-
}
65-
}
58+
public void SetupNormalIndices(int indicesCount)
59+
{
60+
_sharedNormalIndices = new List<HEU_VertexEntry>[indicesCount];
61+
for (int i = 0; i < indicesCount; ++i)
62+
{
63+
_sharedNormalIndices[i] = new List<HEU_VertexEntry>();
64+
}
65+
}
6666
}
6767

6868
/// <summary>
6969
/// Helper used for storing vertex connections for normal generation
7070
/// </summary>
7171
public class HEU_VertexEntry
7272
{
73-
public int _meshKey;
74-
public int _vertexIndex;
75-
public int _normalIndex;
73+
public int _meshKey;
74+
public int _vertexIndex;
75+
public int _normalIndex;
7676

77-
public HEU_VertexEntry(int meshKey, int vertexIndex, int normalIndex)
78-
{
79-
_meshKey = meshKey;
80-
_vertexIndex = vertexIndex;
81-
_normalIndex = normalIndex;
82-
}
77+
public HEU_VertexEntry(int meshKey, int vertexIndex, int normalIndex)
78+
{
79+
_meshKey = meshKey;
80+
_vertexIndex = vertexIndex;
81+
_normalIndex = normalIndex;
82+
}
8383
}
84-
85-
} // HoudiniEngineUnity
84+
} // HoudiniEngineUnity

0 commit comments

Comments
 (0)