Add mjs_makeMesh to create a builtin mesh.
PiperOrigin-RevId: 788538127 Change-Id: I999733399a1a0da07b0f915f34d31364ab8b3b52
This commit is contained in:
committed by
Copybara-Service
parent
46dc67b7eb
commit
89f4789085
@@ -9869,6 +9869,34 @@ FUNCTIONS: Mapping[str, FunctionDecl] = dict([
|
||||
),
|
||||
doc='Add material.',
|
||||
)),
|
||||
('mjs_makeMesh',
|
||||
FunctionDecl(
|
||||
name='mjs_makeMesh',
|
||||
return_type=ValueType(name='int'),
|
||||
parameters=(
|
||||
FunctionParameterDecl(
|
||||
name='mesh',
|
||||
type=PointerType(
|
||||
inner_type=ValueType(name='mjsMesh'),
|
||||
),
|
||||
),
|
||||
FunctionParameterDecl(
|
||||
name='builtin',
|
||||
type=ValueType(name='mjtMeshBuiltin'),
|
||||
),
|
||||
FunctionParameterDecl(
|
||||
name='params',
|
||||
type=PointerType(
|
||||
inner_type=ValueType(name='double'),
|
||||
),
|
||||
),
|
||||
FunctionParameterDecl(
|
||||
name='nparams',
|
||||
type=ValueType(name='int'),
|
||||
),
|
||||
),
|
||||
doc='Sets the vertices and normals of a mesh.',
|
||||
)),
|
||||
('mjs_getSpec',
|
||||
FunctionDecl(
|
||||
name='mjs_getSpec',
|
||||
|
||||
Reference in New Issue
Block a user