kittycad.api.file.create_file_center_of_mass

Functions

asyncio(src_format, body, *, client)

Get the center of mass of an object in a CAD file.

asyncio_detailed(src_format, body, *, client)

rtype:

Response[Union[FileCenterOfMass, Error, None]]

sync(src_format, body, *, client)

Get the center of mass of an object in a CAD file.

sync_detailed(src_format, body, *, client)

rtype:

Response[Union[FileCenterOfMass, Error, None]]

kittycad.api.file.create_file_center_of_mass._build_response(*, response)[source][source]
Return type:

Response[Union[FileCenterOfMass, Error, None]]

kittycad.api.file.create_file_center_of_mass._get_kwargs(src_format, body, *, client)[source][source]
Return type:

Dict[str, Any]

kittycad.api.file.create_file_center_of_mass._parse_response(*, response)[source][source]
Return type:

Union[FileCenterOfMass, Error, None]

async kittycad.api.file.create_file_center_of_mass.asyncio(src_format, body, *, client)[source][source]

Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously. If the operation is performed asynchronously, the id of the operation will be returned. You can use the id returned from the request to get status information about the async operation from the /async/operations/{id} endpoint.

Return type:

Union[FileCenterOfMass, Error, None]

async kittycad.api.file.create_file_center_of_mass.asyncio_detailed(src_format, body, *, client)[source][source]
Return type:

Response[Union[FileCenterOfMass, Error, None]]

kittycad.api.file.create_file_center_of_mass.sync(src_format, body, *, client)[source][source]

Get the center of mass of an object in a CAD file. If the file is larger than 25MB, it will be performed asynchronously. If the operation is performed asynchronously, the id of the operation will be returned. You can use the id returned from the request to get status information about the async operation from the /async/operations/{id} endpoint.

Return type:

Union[FileCenterOfMass, Error, None]

kittycad.api.file.create_file_center_of_mass.sync_detailed(src_format, body, *, client)[source][source]
Return type:

Response[Union[FileCenterOfMass, Error, None]]