public static final class PartStudiosExportGltfRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
Number |
angleTolerance() |
Get Angle tolerance (in radians).
|
PartStudiosExportGltfRequest.Builder |
angleTolerance(Number value) |
Set Angle tolerance (in radians).
|
PartStudiosExportGltfResponse |
call(OnshapeDocument document) |
Calls exportGltf method, Export glTF representation of parts in a Part Studio.
|
PartStudiosExportGltfResponse |
call(String did,
WVM wvmType,
String wvm,
String eid) |
Calls exportGltf method, Export glTF representation of parts in a Part Studio.
|
Number |
chordTolerance() |
Get Chord tolerance (in meters).
|
PartStudiosExportGltfRequest.Builder |
chordTolerance(Number value) |
Set Chord tolerance (in meters).
|
String |
configuration() |
Get Configuration string
|
PartStudiosExportGltfRequest.Builder |
configuration(String value) |
Set Configuration string
|
String |
faceId() |
Get IDs of the faces to tessellate (repeat query param to add more than one, i.e.
|
PartStudiosExportGltfRequest.Builder |
faceId(String value) |
Set IDs of the faces to tessellate (repeat query param to add more than one, i.e.
|
String |
linkDocumentId() |
Get Id of document that links to the document being accessed.
|
PartStudiosExportGltfRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
Number |
maxFacetWidth() |
Get Max facet width.
|
PartStudiosExportGltfRequest.Builder |
maxFacetWidth(Number value) |
Set Max facet width.
|
Boolean |
outputFaceAppearances() |
Get Determines if face appearance data will be included in the output
|
PartStudiosExportGltfRequest.Builder |
outputFaceAppearances(Boolean value) |
Set Determines if face appearance data will be included in the output
|
Boolean |
outputSeparateFaceNodes() |
Get Determines if separate nodes will be created for each face or per part.
|
PartStudiosExportGltfRequest.Builder |
outputSeparateFaceNodes(Boolean value) |
Set Determines if separate nodes will be created for each face or per part.
|
String |
partId() |
Get IDs of the parts to tessellate (repeat query param to add more than one, i.e.
|
PartStudiosExportGltfRequest.Builder |
partId(String value) |
Set IDs of the parts to tessellate (repeat query param to add more than one, i.e.
|
String |
precomputedLevelOfDetail() |
Get If this parameter is specified, the provided level of detail will be retrieved from cache (if available) and used to return the tessellation in a more timely manner.
|
PartStudiosExportGltfRequest.Builder |
precomputedLevelOfDetail(String value) |
Set If this parameter is specified, the provided level of detail will be retrieved from cache (if available) and used to return the tessellation in a more timely manner.
|
public final String partId()
public final PartStudiosExportGltfRequest.Builder partId(String value)
value - IDs of the parts to tessellate (repeat query param to add more than one, i.e. partId=JHK&partId=JHD). May not be combined with faceIdpublic final Number angleTolerance()
public final PartStudiosExportGltfRequest.Builder angleTolerance(Number value)
value - Angle tolerance (in radians). This specifies the limit on the sum of the angular deviations of a tessellation chord from the tangent vectors at two chord endpoints. The specified value must be less than PI/2. This parameter currently has a default value chosen based on the complexity of the parts being tessellated.public final Number chordTolerance()
public final PartStudiosExportGltfRequest.Builder chordTolerance(Number value)
value - Chord tolerance (in meters). This specifies the limit on the maximum deviation of a tessellation chord from the true surface/edge. This parameter currently has a default value chosen based on the size and complexity of the parts being tessellated.public final Number maxFacetWidth()
public final PartStudiosExportGltfRequest.Builder maxFacetWidth(Number value)
value - Max facet width. This specifies the limit on the size of any side of a tessellation facet.public final String faceId()
public final PartStudiosExportGltfRequest.Builder faceId(String value)
value - IDs of the faces to tessellate (repeat query param to add more than one, i.e. faceId=JHK&faceId=JHD)public final String precomputedLevelOfDetail()
public final PartStudiosExportGltfRequest.Builder precomputedLevelOfDetail(String value)
value - If this parameter is specified, the provided level of detail will be retrieved from cache (if available) and used to return the tessellation in a more timely manner. The level-of-detail setting entails automatically-set chordal and angular tolerances. Hence any tolerances supplied to this API call will be ignored. Accepts the following values: coarse, medium, finepublic final Boolean outputFaceAppearances()
public final PartStudiosExportGltfRequest.Builder outputFaceAppearances(Boolean value)
value - Determines if face appearance data will be included in the outputpublic final Boolean outputSeparateFaceNodes()
public final PartStudiosExportGltfRequest.Builder outputSeparateFaceNodes(Boolean value)
value - Determines if separate nodes will be created for each face or per part.public final String linkDocumentId()
public final PartStudiosExportGltfRequest.Builder linkDocumentId(String value)
value - Id of document that links to the document being accessed. This may provide additional access rights to the document. Allowed only with version (v) path parameter.public final String configuration()
public final PartStudiosExportGltfRequest.Builder configuration(String value)
value - Configuration stringpublic final PartStudiosExportGltfResponse call(String did, WVM wvmType, String wvm, String eid) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDeid - Element IDOnshapeException - On HTTP or serialization errorpublic final PartStudiosExportGltfResponse call(OnshapeDocument document) throws OnshapeException
document - Document object from Onshape URL.OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.