feat(schemas): mesh-collision schema-fragment API (additive)#9
Draft
vidurv-nvidia wants to merge 5 commits into
Draft
feat(schemas): mesh-collision schema-fragment API (additive)#9vidurv-nvidia wants to merge 5 commits into
vidurv-nvidia wants to merge 5 commits into
Conversation
Add the additive mesh-collision schema-fragment family, mirroring the rigid-body pilot. Core gains the MeshCollisionFragment marker, the UsdPhysicsMeshCollisionCfg fragment carrying the physics:approximation token, and the apply_mesh_collision_properties family writer (applies the MeshCollisionAPI anchor, resolves and validates the approximation token from whichever cooking fragment is present, then dispatches each fragment via its func). PhysX cooking fragments (PhysxConvexHullCfg, PhysxConvexDecompositionCfg, PhysxTriangleMeshCfg, PhysxTriangleMeshSimplificationCfg, PhysxSDFMeshCfg) and Newton cooking fragments (NewtonMeshCollisionCfg, NewtonSDFCollisionCfg) each own a single namespace and applied schema, dispatched through the generic apply_namespaced applier. Widen the MeshConverterCfg.mesh_collision_props slot to accept a fragment list and add the transition bridge in mesh_converter.py without breaking the legacy single-cfg path. Legacy cfgs and modify_mesh_collision_properties stay intact.
…sionAPI unregistered)
No behavior change; collapse over-explained inline comments to terse intent.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Additive mesh-collision fragment family
MeshCollisionFragment,UsdPhysicsMeshCollisionCfg(physics:approximation),apply_mesh_collision_properties(anchorMeshCollisionAPI)PhysxConvexHullCfg,PhysxConvexDecompositionCfg,PhysxTriangleMeshCfg,PhysxTriangleMeshSimplificationCfg,PhysxSDFMeshCfgNewtonMeshCollisionCfg,NewtonSDFCollisionCfgphysics:approximationtoken is shared state set by whichever cooking fragment is present — handled in the family writer (uses the last non-nonefragment, validates againstMESH_APPROXIMATION_TOKENS). One cross-cutting change:apply_namespacednow skips themesh_approximation_namefield. Status: authored, ruff clean, sim verification pending.Fixes # (N/A — part of the staged physics schema-fragment refactor; no tracked public issue)
Type of change
Screenshots
N/A — no user-facing visual changes.
Checklist
ruff+ruff-format) on the changed files./isaaclab.sh -d; not separately authored)source/<pkg>/changelog.d/for every touched packageCONTRIBUTORS.md