MCPcopy Create free account
hub / github.com/Garten/sourcecraft / writeSide

Method writeSide

src/vmfWriter/EightPoint.java:83–97  ·  view source on GitHub ↗
(ValveWriter writer, Position first, Position second, Position third, String skin, double textureScale1, double textureScale2,
			Position uAxis, Position vAxis)

Source from the content-addressed store, hash-verified

81 protected static final Position BACK_V_AXIS = new Position(0, 0, -1);
82
83 public final void writeSide(ValveWriter writer, Position first, Position second, Position third, String skin, double textureScale1, double textureScale2,
84 Position uAxis, Position vAxis) throws IOException {
85
86 writer.open(SIDE_TAG)
87 .put(ValveElement.ID_TAG, writer.getCounter()
88 .getSideId())
89 .put(PLANE_TAG, "(" + first.getString() + ") (" + second.getString() + ") (" + third.getString() + ")")
90 .put(MATERIAL_TAG, skin)
91 .put(UAXIS_TAG, "[" + uAxis.toAxisString() + " 0] " + this.skin.scale * textureScale1)
92 .put(VAXIS_TAG, "[" + vAxis.toAxisString() + " 0] " + this.skin.scale * textureScale2)
93 .put(ROTATION_TAG, 0)
94 .put(LIGHTMAPSCALE_TAG, LIGHTMAPSCALE)
95 .put(SMOOTHING_GROUPS_TAG, 0);
96 writer.close();
97 }
98}

Callers 3

writeVmfMethod · 0.80
writeVmfMethod · 0.80
writeVmfMethod · 0.80

Calls 7

getSideIdMethod · 0.80
getCounterMethod · 0.80
getStringMethod · 0.80
toAxisStringMethod · 0.80
putMethod · 0.45
openMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected