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82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423


PhysicsSchemaTools module — pxr-usd-api 105.1 documentation

pxr-usd-api

 »
Modules »
PhysicsSchemaTools module

 

# PhysicsSchemaTools module

Summary: Omniverse-specific: The Physics Schema Tools provides tools for the representation of physics properties and behaviors in a 3D scene, such as gravity, collisions, and rigid body dynamics.

Classes:

Path(*args, **kwargs)
PurePath subclass that can make system calls.

Functions:

addActor

addBoxCollisionShape

addCollisionShape

addDensity

addDisplayColor

addGroundPlane

addGroundTriMesh

addOrientation

addPhysicsScene

addPosition

addRigidBody

addRigidBox

addRigidBoxForInstancing

addRigidCapsule

addRigidCone

addRigidCylinder

addRigidSphere

addVelocity

createMesh

createMeshBox

createMeshCapsule

createMeshCylinder

createMeshSphere

createMeshSquare

decodeSdfPath

encodeSdfPath

getMassSpaceInertia

intToSdfPath

sdfPathToInt

class pxr.PhysicsSchemaTools.Path(*args, **kwargs)
PurePath subclass that can make system calls.
Path represents a filesystem path but unlike PurePath, also offers
methods to do system calls on path objects. Depending on your system,
instantiating a Path will return either a PosixPath or a WindowsPath
object. You can also instantiate a PosixPath or WindowsPath directly,
but cannot instantiate a WindowsPath on a POSIX system or vice versa.
Methods:

absolute()
Return an absolute version of this path.

chmod(mode, *[, follow_symlinks])
Change the permissions of the path, like os.chmod().

cwd()
Return a new path pointing to the current working directory (as returned by os.getcwd()).

exists()
Whether this path exists.

expanduser()
Return a new path with expanded ~ and ~user constructs (as returned by os.path.expanduser)

glob(pattern)
Iterate over this subtree and yield all existing files (of any kind, including directories) matching the given relative pattern.

group()
Return the group name of the file gid.

hardlink_to(target)
Make this path a hard link pointing to the same file as target.

home()
Return a new path pointing to the user's home directory (as returned by os.path.expanduser('~')).

is_block_device()
Whether this path is a block device.

is_char_device()
Whether this path is a character device.

is_dir()
Whether this path is a directory.

is_fifo()
Whether this path is a FIFO.

is_file()
Whether this path is a regular file (also True for symlinks pointing to regular files).

is_mount()
Check if this path is a POSIX mount point

is_socket()
Whether this path is a socket.

is_symlink()
Whether this path is a symbolic link.

iterdir()
Iterate over the files in this directory.

lchmod(mode)
Like chmod(), except if the path points to a symlink, the symlink's permissions are changed, rather than its target's.

link_to(target)
Make the target path a hard link pointing to this path.

lstat()
Like stat(), except if the path points to a symlink, the symlink's status information is returned, rather than its target's.

mkdir([mode, parents, exist_ok])
Create a new directory at this given path.

open([mode, buffering, encoding, errors, ...])
Open the file pointed by this path and return a file object, as the built-in open() function does.

owner()
Return the login name of the file owner.

read_bytes()
Open the file in bytes mode, read it, and close the file.

read_text([encoding, errors])
Open the file in text mode, read it, and close the file.

readlink()
Return the path to which the symbolic link points.

rename(target)
Rename this path to the target path.

replace(target)
Rename this path to the target path, overwriting if that path exists.

resolve([strict])
Make the path absolute, resolving all symlinks on the way and also normalizing it (for example turning slashes into backslashes under Windows).

rglob(pattern)
Recursively yield all existing files (of any kind, including directories) matching the given relative pattern, anywhere in this subtree.

rmdir()
Remove this directory.

samefile(other_path)
Return whether other_path is the same or not as this file (as returned by os.path.samefile()).

stat(*[, follow_symlinks])
Return the result of the stat() system call on this path, like os.stat() does.

symlink_to(target[, target_is_directory])
Make this path a symlink pointing to the target path.

touch([mode, exist_ok])
Create this file with the given access mode, if it doesn't exist.

unlink([missing_ok])
Remove this file or link.

write_bytes(data)
Open the file in bytes mode, write to it, and close the file.

write_text(data[, encoding, errors, newline])
Open the file in text mode, write to it, and close the file.

absolute()
Return an absolute version of this path.  This function works
even if the path doesn’t point to anything.
No normalization is done, i.e. all ‘.’ and ‘..’ will be kept along.
Use resolve() to get the canonical path to a file.

chmod(mode, *, follow_symlinks=True)
Change the permissions of the path, like os.chmod().

classmethod cwd()
Return a new path pointing to the current working directory
(as returned by os.getcwd()).

exists()
Whether this path exists.

expanduser()
Return a new path with expanded ~ and ~user constructs
(as returned by os.path.expanduser)

glob(pattern)
Iterate over this subtree and yield all existing files (of any
kind, including directories) matching the given relative pattern.

group()
Return the group name of the file gid.

hardlink_to(target)
Make this path a hard link pointing to the same file as target.
Note the order of arguments (self, target) is the reverse of os.link’s.

classmethod home()
Return a new path pointing to the user’s home directory (as
returned by os.path.expanduser(‘~’)).

is_block_device()
Whether this path is a block device.

is_char_device()
Whether this path is a character device.

is_dir()
Whether this path is a directory.

is_fifo()
Whether this path is a FIFO.

is_file()
Whether this path is a regular file (also True for symlinks pointing
to regular files).

is_mount()
Check if this path is a POSIX mount point

is_socket()
Whether this path is a socket.

is_symlink()
Whether this path is a symbolic link.

iterdir()
Iterate over the files in this directory.  Does not yield any
result for the special paths ‘.’ and ‘..’.

lchmod(mode)
Like chmod(), except if the path points to a symlink, the symlink’s
permissions are changed, rather than its target’s.

link_to(target)
Make the target path a hard link pointing to this path.
Note this function does not make this path a hard link to target,
despite the implication of the function and argument names. The order
of arguments (target, link) is the reverse of Path.symlink_to, but
matches that of os.link.
Deprecated since Python 3.10 and scheduled for removal in Python 3.12.
Use hardlink_to() instead.

lstat()
Like stat(), except if the path points to a symlink, the symlink’s
status information is returned, rather than its target’s.

mkdir(mode=511, parents=False, exist_ok=False)
Create a new directory at this given path.

open(mode='r', buffering=-1, encoding=None, errors=None, newline=None)
Open the file pointed by this path and return a file object, as
the built-in open() function does.

owner()
Return the login name of the file owner.

read_bytes()
Open the file in bytes mode, read it, and close the file.

read_text(encoding=None, errors=None)
Open the file in text mode, read it, and close the file.

readlink()
Return the path to which the symbolic link points.

rename(target)
Rename this path to the target path.
The target path may be absolute or relative. Relative paths are
interpreted relative to the current working directory, not the
directory of the Path object.
Returns the new Path instance pointing to the target path.

replace(target)
Rename this path to the target path, overwriting if that path exists.
The target path may be absolute or relative. Relative paths are
interpreted relative to the current working directory, not the
directory of the Path object.
Returns the new Path instance pointing to the target path.

resolve(strict=False)
Make the path absolute, resolving all symlinks on the way and also
normalizing it (for example turning slashes into backslashes under
Windows).

rglob(pattern)
Recursively yield all existing files (of any kind, including
directories) matching the given relative pattern, anywhere in
this subtree.

rmdir()
Remove this directory.  The directory must be empty.

samefile(other_path)
Return whether other_path is the same or not as this file
(as returned by os.path.samefile()).

stat(*, follow_symlinks=True)
Return the result of the stat() system call on this path, like
os.stat() does.

symlink_to(target, target_is_directory=False)
Make this path a symlink pointing to the target path.
Note the order of arguments (link, target) is the reverse of os.symlink.

touch(mode=438, exist_ok=True)
Create this file with the given access mode, if it doesn’t exist.

unlink(missing_ok=False)
Remove this file or link.
If the path is a directory, use rmdir() instead.

write_bytes(data)
Open the file in bytes mode, write to it, and close the file.

write_text(data, encoding=None, errors=None, newline=None)
Open the file in text mode, write to it, and close the file.

pxr.PhysicsSchemaTools.addActor()

pxr.PhysicsSchemaTools.addBoxCollisionShape()

pxr.PhysicsSchemaTools.addCollisionShape()

pxr.PhysicsSchemaTools.addDensity()

pxr.PhysicsSchemaTools.addDisplayColor()

pxr.PhysicsSchemaTools.addGroundPlane()

pxr.PhysicsSchemaTools.addGroundTriMesh()

pxr.PhysicsSchemaTools.addOrientation()

pxr.PhysicsSchemaTools.addPhysicsScene()

pxr.PhysicsSchemaTools.addPosition()

pxr.PhysicsSchemaTools.addRigidBody()

pxr.PhysicsSchemaTools.addRigidBox()

pxr.PhysicsSchemaTools.addRigidBoxForInstancing()

pxr.PhysicsSchemaTools.addRigidCapsule()

pxr.PhysicsSchemaTools.addRigidCone()

pxr.PhysicsSchemaTools.addRigidCylinder()

pxr.PhysicsSchemaTools.addRigidSphere()

pxr.PhysicsSchemaTools.addVelocity()

pxr.PhysicsSchemaTools.createMesh()

pxr.PhysicsSchemaTools.createMeshBox()

pxr.PhysicsSchemaTools.createMeshCapsule()

pxr.PhysicsSchemaTools.createMeshCylinder()

pxr.PhysicsSchemaTools.createMeshSphere()

pxr.PhysicsSchemaTools.createMeshSquare()

pxr.PhysicsSchemaTools.decodeSdfPath()

pxr.PhysicsSchemaTools.encodeSdfPath()

pxr.PhysicsSchemaTools.getMassSpaceInertia()

pxr.PhysicsSchemaTools.intToSdfPath()

pxr.PhysicsSchemaTools.sdfPathToInt()

© Copyright 2019-2023, NVIDIA.
      Last updated on Nov 14, 2023.