kittycad.api.file.create_file_density

Functions

asyncio(material_mass, material_mass_unit, ...)

We assume any file given to us has one consistent unit throughout.

asyncio_detailed(material_mass, ...)

rtype:

Response[Union[FileDensity, Error, None]]

sync(material_mass, material_mass_unit, ...)

We assume any file given to us has one consistent unit throughout.

sync_detailed(material_mass, ...)

rtype:

Response[Union[FileDensity, Error, None]]

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

Response[Union[FileDensity, Error, None]]

kittycad.api.file.create_file_density._get_kwargs(material_mass, material_mass_unit, output_unit, src_format, body, *, client)[source][source]
Return type:

Dict[str, Any]

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

Union[FileDensity, Error, None]

async kittycad.api.file.create_file_density.asyncio(material_mass, material_mass_unit, output_unit, src_format, body, *, client)[source][source]

We assume any file given to us has one consistent unit throughout. We also assume the file is at the proper scale. This endpoint assumes if you are giving a material mass in a specific mass units, we return a density in mass unit per cubic measure unit. In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported. Get the density 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[FileDensity, Error, None]

async kittycad.api.file.create_file_density.asyncio_detailed(material_mass, material_mass_unit, output_unit, src_format, body, *, client)[source][source]
Return type:

Response[Union[FileDensity, Error, None]]

kittycad.api.file.create_file_density.sync(material_mass, material_mass_unit, output_unit, src_format, body, *, client)[source][source]

We assume any file given to us has one consistent unit throughout. We also assume the file is at the proper scale. This endpoint assumes if you are giving a material mass in a specific mass units, we return a density in mass unit per cubic measure unit. In the future, we will use the units inside the file if they are given and do any conversions if necessary for the calculation. But currently, that is not supported. Get the density 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[FileDensity, Error, None]

kittycad.api.file.create_file_density.sync_detailed(material_mass, material_mass_unit, output_unit, src_format, body, *, client)[source][source]
Return type:

Response[Union[FileDensity, Error, None]]