Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Hurstel
CGoGN
Commits
070962c3
Commit
070962c3
authored
Jul 29, 2011
by
Maire Nicolas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correction d'une autre petite erreur dans clippingShader.
parent
7798f434
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/Utils/clippingShader.cpp
src/Utils/clippingShader.cpp
+4
-2
No files found.
src/Utils/clippingShader.cpp
View file @
070962c3
...
...
@@ -91,7 +91,8 @@ int ClippingShader::addClipPlane()
// Resize planes arrays to the right size
m_clipPlanes
.
resize
((
size_t
)(
previousPlanesCount
+
1
));
m_clipPlanesIds
.
resize
((
size_t
)(
newPlaneId
+
1
));
if
(
newPlaneId
>=
m_clipPlanesIds
.
size
())
m_clipPlanesIds
.
resize
((
size_t
)(
newPlaneId
+
1
));
m_clipPlanesEquations
.
resize
(
4
*
(
size_t
)(
previousPlanesCount
+
1
),
0.0
);
// Set new plane id
...
...
@@ -349,7 +350,8 @@ int ClippingShader::addClipSphere()
// Resize spheres arrays to the right size
m_clipSpheres
.
resize
((
size_t
)(
previousSpheresCount
+
1
));
m_clipSpheresIds
.
resize
((
size_t
)(
newSphereId
+
1
));
if
(
newSphereId
>=
m_clipSpheresIds
.
size
())
m_clipSpheresIds
.
resize
((
size_t
)(
newSphereId
+
1
));
m_clipSpheresCentersAndRadiuses
.
resize
(
4
*
(
size_t
)(
previousSpheresCount
+
1
),
0.0
);
// Set new sphere id
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment