public static final class PartsExportGltfRequest.Builder extends Object
| Modifier and Type | Method | Description |
|---|---|---|
Number |
angleTolerance() |
Get Angle tolerance (in radians).
|
PartsExportGltfRequest.Builder |
angleTolerance(Number value) |
Set Angle tolerance (in radians).
|
PartsExportGltfResponse |
call(OnshapeDocument document,
String partid) |
Calls exportGltf method, Export glTF representation of a part.
|
PartsExportGltfResponse |
call(String did,
WVM wvmType,
String wvm,
String eid,
String partid) |
Calls exportGltf method, Export glTF representation of a part.
|
Number |
chordTolerance() |
Get Chord tolerance (in meters).
|
PartsExportGltfRequest.Builder |
chordTolerance(Number value) |
Set Chord tolerance (in meters).
|
String |
configuration() |
Get Configuration string
|
PartsExportGltfRequest.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.
|
PartsExportGltfRequest.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.
|
PartsExportGltfRequest.Builder |
linkDocumentId(String value) |
Set Id of document that links to the document being accessed.
|
Number |
maxFacetWidth() |
Get Max facet width.
|
PartsExportGltfRequest.Builder |
maxFacetWidth(Number value) |
Set Max facet width.
|
Boolean |
outputFaceAppearances() |
Get Determines if face appearance data will be included in the output
|
PartsExportGltfRequest.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.
|
PartsExportGltfRequest.Builder |
outputSeparateFaceNodes(Boolean value) |
Set Determines if separate nodes will be created for each face or per part.
|
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.
|
PartsExportGltfRequest.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 Number angleTolerance()
public final PartsExportGltfRequest.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 PartsExportGltfRequest.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 PartsExportGltfRequest.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 PartsExportGltfRequest.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 PartsExportGltfRequest.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 PartsExportGltfRequest.Builder outputFaceAppearances(Boolean value)
value - Determines if face appearance data will be included in the outputpublic final Boolean outputSeparateFaceNodes()
public final PartsExportGltfRequest.Builder outputSeparateFaceNodes(Boolean value)
value - Determines if separate nodes will be created for each face or per part.public final String linkDocumentId()
public final PartsExportGltfRequest.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 PartsExportGltfRequest.Builder configuration(String value)
value - Configuration stringpublic final PartsExportGltfResponse call(String did, WVM wvmType, String wvm, String eid, String partid) throws OnshapeException
did - Document IDwvmType - Type of Workspace, Version or Microversionwvm - Workspace (w), Version (v) or Microversion (m) IDeid - Element IDpartid - Part ID (must be URL encoded)OnshapeException - On HTTP or serialization errorpublic final PartsExportGltfResponse call(OnshapeDocument document, String partid) throws OnshapeException
document - Document object from Onshape URL.partid - Part ID (must be URL encoded)OnshapeException - On HTTP or serialization errorCopyright © 2021. All rights reserved.