Skip to content

Commit 76f071c

Browse files
committed
removed trailing whitespaces
Signed-off-by: Ken Museth <ken.museth@gmail.com>
1 parent 40e5c1a commit 76f071c

4 files changed

Lines changed: 17 additions & 17 deletions

File tree

nanovdb/nanovdb/examples/ex_raytrace_iso_surface/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct RenderOp
2222
float mDx, mIso, mWBBoxDimZ;
2323
Vec3T mWBBoxCenter;
2424

25-
template<typename BufferT>
25+
template<typename BufferT>
2626
RenderOp(nanovdb::GridHandle<BufferT>& handle, int width, int height)
2727
{
2828
mWidth = width;
@@ -107,7 +107,7 @@ struct RenderOp
107107
return duration;
108108
}
109109

110-
template <typename GridT>
110+
template <typename GridT>
111111
inline __hostdev__ RayT getIndexRay(int i, const GridT *grid) const
112112
{
113113
// perspective camera along Z-axis...

openvdb/openvdb/python/app/usd_utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33

44
have_pxr_lib = False
5-
try:
5+
try:
66
# conditionally load so it is an optional dependency
77
import pxr # USD support
88
from pxr import Usd, UsdGeom
99
have_pxr_lib = True
10-
except ImportError:
10+
except ImportError:
1111
pass
1212

1313
# See https://github.com/ColinKennedy/USD-Cookbook/blob/master/tricks/traverse_instanced_prims/README.md
@@ -36,7 +36,7 @@ def simple_triangulate_faces(face_vertex_counts, face_vertex_inds_flat):
3636
"""
3737
Given a polygonal mesh (with arbitrary degree faces) in a flat list representation, triangulates the faces, and returns a new (Tx3) numpy array.
3838
39-
This is a naive pure-python for-loop, so it will be slow for large meshes.
39+
This is a naive pure-python for-loop, so it will be slow for large meshes.
4040
TODO write some clever numpy or something.
4141
"""
4242

@@ -146,7 +146,7 @@ def load_file(self):
146146
self.merged_faces_source_prim: (M,) array indicating source prim index for each face
147147
"""
148148
# Open the USD file
149-
if self.verbose:
149+
if self.verbose:
150150
print(f"USD: loading {self.usd_path}")
151151
self.stage = Usd.Stage.Open(self.usd_path)
152152
self.root_prim = self.stage.GetPseudoRoot()
@@ -155,7 +155,7 @@ def load_file(self):
155155
# traverse_instanced_children handles instanced geometry properly
156156
self.mesh_prims = []
157157
for prim in traverse_instanced_children(self.root_prim):
158-
if self.verbose:
158+
if self.verbose:
159159
print(f" USD traversing: {prim.GetPath()}")
160160

161161
if prim.IsA(UsdGeom.Mesh):

openvdb/openvdb/tools/PolySoupToLevelSet.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ class PolySoupToLevelSet
186186
template<class ShrinkWrapT, class ProgressT>
187187
void process(const ShrinkWrapT &D, ProgressT *progress, int mode = 0);
188188

189-
/// @brief Number of shrink wrap grids generated, i.e. depth of the LOD hierarchy.
189+
/// @brief Number of shrink wrap grids generated, i.e. depth of the LOD hierarchy.
190190
size_t gridCount() const {return mGrids.size();}
191191

192192
/// @brief Returns a shared pointer to a particular shrink wrap grid
@@ -229,7 +229,7 @@ class PolySoupToLevelSet
229229
private:
230230
PolySoup mPoly;
231231
float mMinVoxelSize, mMaxVoxelSize, mHalfWidth;
232-
std::vector<typename GridType::Ptr> mGrids;// fine(0) -> coarse grids(size-1)
232+
std::vector<typename GridType::Ptr> mGrids;// fine(0) -> coarse grids(size-1)
233233
bool mIsGridSDF;
234234

235235
/// @brief Private method that resamples inGrid(dx) to outGrid(dx/2).
@@ -348,7 +348,7 @@ auto PolySoupToLevelSet<GridType>::offset(float dx, int mode)
348348
//grid->tree().root().setBackground(exteriorWidth, /*updateChildNodes=*/true);
349349
//tools::signedFloodFillWithValues(grid->tree(), exteriorWidth, interiorWidth);
350350
tools::distanceFieldToSDF(*grid, /*removeDisconnectedInterior*/true, /*rebuildNarrowBand*/true);
351-
break;
351+
break;
352352
case 2:// algorithm using Greg's polyOffset algorithm
353353
grid = tools::createLevelSetDilatedMesh<GridType, float>(mPoly.vtx, mPoly.tri, mPoly.quad, /*radius*/dx, /*voxel size*/dx, mHalfWidth);
354354
//tools::distanceFieldToSDF(*grid, /*removeDisconnectedInterior*/true, /*rebuildNarrowBand*/false);

openvdb_cmd/vdb_tool/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -798,32 +798,32 @@ vdb_tool 10.8.0
798798
799799
# 1. LOAD A MASK (Optional)
800800
# Used to clip the fluid so it doesn't leak out of the container
801-
read collision_geo.obj
801+
read collision_geo.obj
802802
mesh2ls voxel=0.1 width=3
803803
804804
# 2. LOOP THROUGH PARTICLE SEQUENCE
805805
# Processing frames 200 to 300
806806
for n=200,300,1
807-
807+
808808
# Read the particle VDB for the current frame
809809
read points_{$n:4:pad0}.vdb
810-
810+
811811
# Convert particles to a Level Set
812812
# 'radius' is the particle size; 'voxel' is the grid resolution
813813
points2ls voxel=0.035 radius=2.142 width=3
814-
814+
815815
# SURFACE REFINEMENT
816816
dilate radius=2.5 # Expand to merge gaps
817817
gauss iter=2 # Smooth out the "blobby" look
818818
erode radius=2.5 # Shrink back to original scale
819-
819+
820820
# 3. MESHING & CLIPPING
821821
# Convert to adaptive mesh, clipped by our collision mask (vdb=1)
822822
ls2mesh vdb=0 mask=1 adapt=0.005
823-
823+
824824
# 4. EXPORT
825825
write mesh_{$n:4:pad0}.abc
826-
826+
827827
# Clear the stack for the next frame to prevent memory bloat
828828
clear
829829
end

0 commit comments

Comments
 (0)