curl -X GET "http://localhost/api/partstudios/d/{did}/{wvm}/{wvmid}/e/{eid}/shadedviews?viewMatrix=&outputHeight=&outputWidth=&pixelSize=&edges=&showAllParts=&includeSurfaces=&useAntiAliasing=&configuration=&linkDocumentId="
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: OAuth2
OAuth OAuth2 = (OAuth) defaultClient.getAuthentication("OAuth2");
OAuth2.setAccessToken("YOUR ACCESS TOKEN");
DefaultApi apiInstance = new DefaultApi();
String did = did_example; // String | Document ID.
String wvm = wvm_example; // String | One of w or v or m corresponding to whether a workspace or version or microversion was entered.
String wvmid = wvmid_example; // String | Workspace (w), Version (v) or Microversion (m) ID.
String eid = eid_example; // String | Element ID.
String viewMatrix = viewMatrix_example; // String | 12-number view matrix (comma-separated), or one of the following named views:
top, bottom, front, back, left, right
The 12 entries in the view matrix form three rows and four columns, which is a linear transformation applied to the model itself.
The matrix's first three columns maps the coordinate axes of the model to the coordinate axes of the view, and the fourth column translates the origin (in meters).
The view coordinates have x pointing right, y pointing up, and z pointing towards the viewer, while a front view of the model has x pointing right, y pointing away from the viewer, and z pointing up.
For example, the identity matrix viewMatrix=1,0,0,0,0,1,0,0,0,0,1,0 corresponds to the top view, and viewMatrix=0.612,0.612,0,0,-0.354,0.354,0.707,0,0.707,-0.707,0.707,0 corresponds (approximately) to the isometric view.
The first three columns of the view matrix should be orthonormal and have a positive determinant. If this is not the case, view behavior may be undefined.
Integer outputHeight = 56; // Integer | Output image height (in pixels)
Integer outputWidth = 56; // Integer | Output image width (in pixels)
Double pixelSize = 1.2; // Double | Height and width represented by each pixel (in meters). If the value is 0, the display will be sized to fit the output image dimensions.
String edges = edges_example; // String | The treatment to be applied to edges in the display. Options are show: show visible edges, hide: hide visible edges.
Boolean showAllParts = true; // Boolean | Whether or not all parts should be shown in the element,
regardless of user setting. If false, the visibility setting made by the user will be reflected in the
image. If true, all parts will be shown.
Boolean includeSurfaces = true; // Boolean | Whether or not surfaces should be shown in the element.
It is applicable only when showAllParts is true. If false, surfaces will be excluded.
If true, all surfaces will be shown.
Boolean useAntiAliasing = true; // Boolean | If true, an anti-aliasing factor will be used to smooth
model boundaries in the final image result. If false, the image will be rasterized at the given
resolution. Setting to true can have negative performance implications with respect to rendering time
and memory usage. If a high-resolution image is requested and anti-aliasing is turned on, the server
may not be able to fulfill the request.
String configuration = configuration_example; // String | Configuration string.
String linkDocumentId = linkDocumentId_example; // String | 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.
try {
BTShadedRenderDocumentResponse result = apiInstance.getShadedViews1(did, wvm, wvmid, eid, viewMatrix, outputHeight, outputWidth, pixelSize, edges, showAllParts, includeSurfaces, useAntiAliasing, configuration, linkDocumentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getShadedViews1");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String did = did_example; // String | Document ID.
String wvm = wvm_example; // String | One of w or v or m corresponding to whether a workspace or version or microversion was entered.
String wvmid = wvmid_example; // String | Workspace (w), Version (v) or Microversion (m) ID.
String eid = eid_example; // String | Element ID.
String viewMatrix = viewMatrix_example; // String | 12-number view matrix (comma-separated), or one of the following named views:
top, bottom, front, back, left, right
The 12 entries in the view matrix form three rows and four columns, which is a linear transformation applied to the model itself.
The matrix's first three columns maps the coordinate axes of the model to the coordinate axes of the view, and the fourth column translates the origin (in meters).
The view coordinates have x pointing right, y pointing up, and z pointing towards the viewer, while a front view of the model has x pointing right, y pointing away from the viewer, and z pointing up.
For example, the identity matrix viewMatrix=1,0,0,0,0,1,0,0,0,0,1,0 corresponds to the top view, and viewMatrix=0.612,0.612,0,0,-0.354,0.354,0.707,0,0.707,-0.707,0.707,0 corresponds (approximately) to the isometric view.
The first three columns of the view matrix should be orthonormal and have a positive determinant. If this is not the case, view behavior may be undefined.
Integer outputHeight = 56; // Integer | Output image height (in pixels)
Integer outputWidth = 56; // Integer | Output image width (in pixels)
Double pixelSize = 1.2; // Double | Height and width represented by each pixel (in meters). If the value is 0, the display will be sized to fit the output image dimensions.
String edges = edges_example; // String | The treatment to be applied to edges in the display. Options are show: show visible edges, hide: hide visible edges.
Boolean showAllParts = true; // Boolean | Whether or not all parts should be shown in the element,
regardless of user setting. If false, the visibility setting made by the user will be reflected in the
image. If true, all parts will be shown.
Boolean includeSurfaces = true; // Boolean | Whether or not surfaces should be shown in the element.
It is applicable only when showAllParts is true. If false, surfaces will be excluded.
If true, all surfaces will be shown.
Boolean useAntiAliasing = true; // Boolean | If true, an anti-aliasing factor will be used to smooth
model boundaries in the final image result. If false, the image will be rasterized at the given
resolution. Setting to true can have negative performance implications with respect to rendering time
and memory usage. If a high-resolution image is requested and anti-aliasing is turned on, the server
may not be able to fulfill the request.
String configuration = configuration_example; // String | Configuration string.
String linkDocumentId = linkDocumentId_example; // String | 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.
try {
BTShadedRenderDocumentResponse result = apiInstance.getShadedViews1(did, wvm, wvmid, eid, viewMatrix, outputHeight, outputWidth, pixelSize, edges, showAllParts, includeSurfaces, useAntiAliasing, configuration, linkDocumentId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#getShadedViews1");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure OAuth2 access token for authorization: (authentication scheme: OAuth2)
[apiConfig setAccessToken:@"YOUR_ACCESS_TOKEN"];
String *did = did_example; // Document ID. (default to null)
String *wvm = wvm_example; // One of w or v or m corresponding to whether a workspace or version or microversion was entered. (default to null)
String *wvmid = wvmid_example; // Workspace (w), Version (v) or Microversion (m) ID. (default to null)
String *eid = eid_example; // Element ID. (default to null)
String *viewMatrix = viewMatrix_example; // 12-number view matrix (comma-separated), or one of the following named views:
top, bottom, front, back, left, right
The 12 entries in the view matrix form three rows and four columns, which is a linear transformation applied to the model itself.
The matrix's first three columns maps the coordinate axes of the model to the coordinate axes of the view, and the fourth column translates the origin (in meters).
The view coordinates have x pointing right, y pointing up, and z pointing towards the viewer, while a front view of the model has x pointing right, y pointing away from the viewer, and z pointing up.
For example, the identity matrix viewMatrix=1,0,0,0,0,1,0,0,0,0,1,0 corresponds to the top view, and viewMatrix=0.612,0.612,0,0,-0.354,0.354,0.707,0,0.707,-0.707,0.707,0 corresponds (approximately) to the isometric view.
The first three columns of the view matrix should be orthonormal and have a positive determinant. If this is not the case, view behavior may be undefined. (optional) (default to front)
Integer *outputHeight = 56; // Output image height (in pixels) (optional) (default to 500)
Integer *outputWidth = 56; // Output image width (in pixels) (optional) (default to 500)
Double *pixelSize = 1.2; // Height and width represented by each pixel (in meters). If the value is 0, the display will be sized to fit the output image dimensions. (optional) (default to 0.003)
String *edges = edges_example; // The treatment to be applied to edges in the display. Options are show: show visible edges, hide: hide visible edges. (optional) (default to show)
Boolean *showAllParts = true; // Whether or not all parts should be shown in the element,
regardless of user setting. If false, the visibility setting made by the user will be reflected in the
image. If true, all parts will be shown. (optional) (default to false)
Boolean *includeSurfaces = true; // Whether or not surfaces should be shown in the element.
It is applicable only when showAllParts is true. If false, surfaces will be excluded.
If true, all surfaces will be shown. (optional) (default to false)
Boolean *useAntiAliasing = true; // If true, an anti-aliasing factor will be used to smooth
model boundaries in the final image result. If false, the image will be rasterized at the given
resolution. Setting to true can have negative performance implications with respect to rendering time
and memory usage. If a high-resolution image is requested and anti-aliasing is turned on, the server
may not be able to fulfill the request. (optional) (default to false)
String *configuration = configuration_example; // Configuration string. (optional) (default to null)
String *linkDocumentId = linkDocumentId_example; // 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. (optional) (default to null)
DefaultApi *apiInstance = [[DefaultApi alloc] init];
// Get Shaded Views
[apiInstance getShadedViews1With:did
wvm:wvm
wvmid:wvmid
eid:eid
viewMatrix:viewMatrix
outputHeight:outputHeight
outputWidth:outputWidth
pixelSize:pixelSize
edges:edges
showAllParts:showAllParts
includeSurfaces:includeSurfaces
useAntiAliasing:useAntiAliasing
configuration:configuration
linkDocumentId:linkDocumentId
completionHandler: ^(BTShadedRenderDocumentResponse output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var OnshapeRestApi = require('onshape_rest_api');
var defaultClient = OnshapeRestApi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuth2
var OAuth2 = defaultClient.authentications['OAuth2'];
OAuth2.accessToken = "YOUR ACCESS TOKEN"
var api = new OnshapeRestApi.DefaultApi()
var did = did_example; // {String} Document ID.
var wvm = wvm_example; // {String} One of w or v or m corresponding to whether a workspace or version or microversion was entered.
var wvmid = wvmid_example; // {String} Workspace (w), Version (v) or Microversion (m) ID.
var eid = eid_example; // {String} Element ID.
var opts = {
'viewMatrix': viewMatrix_example, // {String} 12-number view matrix (comma-separated), or one of the following named views:
top, bottom, front, back, left, right
The 12 entries in the view matrix form three rows and four columns, which is a linear transformation applied to the model itself.
The matrix's first three columns maps the coordinate axes of the model to the coordinate axes of the view, and the fourth column translates the origin (in meters).
The view coordinates have x pointing right, y pointing up, and z pointing towards the viewer, while a front view of the model has x pointing right, y pointing away from the viewer, and z pointing up.
For example, the identity matrix viewMatrix=1,0,0,0,0,1,0,0,0,0,1,0 corresponds to the top view, and viewMatrix=0.612,0.612,0,0,-0.354,0.354,0.707,0,0.707,-0.707,0.707,0 corresponds (approximately) to the isometric view.
The first three columns of the view matrix should be orthonormal and have a positive determinant. If this is not the case, view behavior may be undefined.
'outputHeight': 56, // {Integer} Output image height (in pixels)
'outputWidth': 56, // {Integer} Output image width (in pixels)
'pixelSize': 1.2, // {Double} Height and width represented by each pixel (in meters). If the value is 0, the display will be sized to fit the output image dimensions.
'edges': edges_example, // {String} The treatment to be applied to edges in the display. Options are show: show visible edges, hide: hide visible edges.
'showAllParts': true, // {Boolean} Whether or not all parts should be shown in the element,
regardless of user setting. If false, the visibility setting made by the user will be reflected in the
image. If true, all parts will be shown.
'includeSurfaces': true, // {Boolean} Whether or not surfaces should be shown in the element.
It is applicable only when showAllParts is true. If false, surfaces will be excluded.
If true, all surfaces will be shown.
'useAntiAliasing': true, // {Boolean} If true, an anti-aliasing factor will be used to smooth
model boundaries in the final image result. If false, the image will be rasterized at the given
resolution. Setting to true can have negative performance implications with respect to rendering time
and memory usage. If a high-resolution image is requested and anti-aliasing is turned on, the server
may not be able to fulfill the request.
'configuration': configuration_example, // {String} Configuration string.
'linkDocumentId': linkDocumentId_example // {String} 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.
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getShadedViews1(did, wvm, wvmid, eid, opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class getShadedViews1Example
{
public void main()
{
// Configure OAuth2 access token for authorization: OAuth2
Configuration.Default.AccessToken = "YOUR_ACCESS_TOKEN";
var apiInstance = new DefaultApi();
var did = did_example; // String | Document ID. (default to null)
var wvm = wvm_example; // String | One of w or v or m corresponding to whether a workspace or version or microversion was entered. (default to null)
var wvmid = wvmid_example; // String | Workspace (w), Version (v) or Microversion (m) ID. (default to null)
var eid = eid_example; // String | Element ID. (default to null)
var viewMatrix = viewMatrix_example; // String | 12-number view matrix (comma-separated), or one of the following named views:
top, bottom, front, back, left, right
The 12 entries in the view matrix form three rows and four columns, which is a linear transformation applied to the model itself.
The matrix's first three columns maps the coordinate axes of the model to the coordinate axes of the view, and the fourth column translates the origin (in meters).
The view coordinates have x pointing right, y pointing up, and z pointing towards the viewer, while a front view of the model has x pointing right, y pointing away from the viewer, and z pointing up.
For example, the identity matrix viewMatrix=1,0,0,0,0,1,0,0,0,0,1,0 corresponds to the top view, and viewMatrix=0.612,0.612,0,0,-0.354,0.354,0.707,0,0.707,-0.707,0.707,0 corresponds (approximately) to the isometric view.
The first three columns of the view matrix should be orthonormal and have a positive determinant. If this is not the case, view behavior may be undefined. (optional) (default to front)
var outputHeight = 56; // Integer | Output image height (in pixels) (optional) (default to 500)
var outputWidth = 56; // Integer | Output image width (in pixels) (optional) (default to 500)
var pixelSize = 1.2; // Double | Height and width represented by each pixel (in meters). If the value is 0, the display will be sized to fit the output image dimensions. (optional) (default to 0.003)
var edges = edges_example; // String | The treatment to be applied to edges in the display. Options are show: show visible edges, hide: hide visible edges. (optional) (default to show)
var showAllParts = true; // Boolean | Whether or not all parts should be shown in the element,
regardless of user setting. If false, the visibility setting made by the user will be reflected in the
image. If true, all parts will be shown. (optional) (default to false)
var includeSurfaces = true; // Boolean | Whether or not surfaces should be shown in the element.
It is applicable only when showAllParts is true. If false, surfaces will be excluded.
If true, all surfaces will be shown. (optional) (default to false)
var useAntiAliasing = true; // Boolean | If true, an anti-aliasing factor will be used to smooth
model boundaries in the final image result. If false, the image will be rasterized at the given
resolution. Setting to true can have negative performance implications with respect to rendering time
and memory usage. If a high-resolution image is requested and anti-aliasing is turned on, the server
may not be able to fulfill the request. (optional) (default to false)
var configuration = configuration_example; // String | Configuration string. (optional) (default to null)
var linkDocumentId = linkDocumentId_example; // String | 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. (optional) (default to null)
try
{
// Get Shaded Views
BTShadedRenderDocumentResponse result = apiInstance.getShadedViews1(did, wvm, wvmid, eid, viewMatrix, outputHeight, outputWidth, pixelSize, edges, showAllParts, includeSurfaces, useAntiAliasing, configuration, linkDocumentId);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DefaultApi.getShadedViews1: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure OAuth2 access token for authorization: OAuth2
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$did = did_example; // String | Document ID.
$wvm = wvm_example; // String | One of w or v or m corresponding to whether a workspace or version or microversion was entered.
$wvmid = wvmid_example; // String | Workspace (w), Version (v) or Microversion (m) ID.
$eid = eid_example; // String | Element ID.
$viewMatrix = viewMatrix_example; // String | 12-number view matrix (comma-separated), or one of the following named views:
top, bottom, front, back, left, right
The 12 entries in the view matrix form three rows and four columns, which is a linear transformation applied to the model itself.
The matrix's first three columns maps the coordinate axes of the model to the coordinate axes of the view, and the fourth column translates the origin (in meters).
The view coordinates have x pointing right, y pointing up, and z pointing towards the viewer, while a front view of the model has x pointing right, y pointing away from the viewer, and z pointing up.
For example, the identity matrix viewMatrix=1,0,0,0,0,1,0,0,0,0,1,0 corresponds to the top view, and viewMatrix=0.612,0.612,0,0,-0.354,0.354,0.707,0,0.707,-0.707,0.707,0 corresponds (approximately) to the isometric view.
The first three columns of the view matrix should be orthonormal and have a positive determinant. If this is not the case, view behavior may be undefined.
$outputHeight = 56; // Integer | Output image height (in pixels)
$outputWidth = 56; // Integer | Output image width (in pixels)
$pixelSize = 1.2; // Double | Height and width represented by each pixel (in meters). If the value is 0, the display will be sized to fit the output image dimensions.
$edges = edges_example; // String | The treatment to be applied to edges in the display. Options are show: show visible edges, hide: hide visible edges.
$showAllParts = true; // Boolean | Whether or not all parts should be shown in the element,
regardless of user setting. If false, the visibility setting made by the user will be reflected in the
image. If true, all parts will be shown.
$includeSurfaces = true; // Boolean | Whether or not surfaces should be shown in the element.
It is applicable only when showAllParts is true. If false, surfaces will be excluded.
If true, all surfaces will be shown.
$useAntiAliasing = true; // Boolean | If true, an anti-aliasing factor will be used to smooth
model boundaries in the final image result. If false, the image will be rasterized at the given
resolution. Setting to true can have negative performance implications with respect to rendering time
and memory usage. If a high-resolution image is requested and anti-aliasing is turned on, the server
may not be able to fulfill the request.
$configuration = configuration_example; // String | Configuration string.
$linkDocumentId = linkDocumentId_example; // String | 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.
try {
$result = $api_instance->getShadedViews1($did, $wvm, $wvmid, $eid, $viewMatrix, $outputHeight, $outputWidth, $pixelSize, $edges, $showAllParts, $includeSurfaces, $useAntiAliasing, $configuration, $linkDocumentId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->getShadedViews1: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Configure OAuth2 access token for authorization: OAuth2
$WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $did = did_example; # String | Document ID.
my $wvm = wvm_example; # String | One of w or v or m corresponding to whether a workspace or version or microversion was entered.
my $wvmid = wvmid_example; # String | Workspace (w), Version (v) or Microversion (m) ID.
my $eid = eid_example; # String | Element ID.
my $viewMatrix = viewMatrix_example; # String | 12-number view matrix (comma-separated), or one of the following named views:
top, bottom, front, back, left, right
The 12 entries in the view matrix form three rows and four columns, which is a linear transformation applied to the model itself.
The matrix's first three columns maps the coordinate axes of the model to the coordinate axes of the view, and the fourth column translates the origin (in meters).
The view coordinates have x pointing right, y pointing up, and z pointing towards the viewer, while a front view of the model has x pointing right, y pointing away from the viewer, and z pointing up.
For example, the identity matrix viewMatrix=1,0,0,0,0,1,0,0,0,0,1,0 corresponds to the top view, and viewMatrix=0.612,0.612,0,0,-0.354,0.354,0.707,0,0.707,-0.707,0.707,0 corresponds (approximately) to the isometric view.
The first three columns of the view matrix should be orthonormal and have a positive determinant. If this is not the case, view behavior may be undefined.
my $outputHeight = 56; # Integer | Output image height (in pixels)
my $outputWidth = 56; # Integer | Output image width (in pixels)
my $pixelSize = 1.2; # Double | Height and width represented by each pixel (in meters). If the value is 0, the display will be sized to fit the output image dimensions.
my $edges = edges_example; # String | The treatment to be applied to edges in the display. Options are show: show visible edges, hide: hide visible edges.
my $showAllParts = true; # Boolean | Whether or not all parts should be shown in the element,
regardless of user setting. If false, the visibility setting made by the user will be reflected in the
image. If true, all parts will be shown.
my $includeSurfaces = true; # Boolean | Whether or not surfaces should be shown in the element.
It is applicable only when showAllParts is true. If false, surfaces will be excluded.
If true, all surfaces will be shown.
my $useAntiAliasing = true; # Boolean | If true, an anti-aliasing factor will be used to smooth
model boundaries in the final image result. If false, the image will be rasterized at the given
resolution. Setting to true can have negative performance implications with respect to rendering time
and memory usage. If a high-resolution image is requested and anti-aliasing is turned on, the server
may not be able to fulfill the request.
my $configuration = configuration_example; # String | Configuration string.
my $linkDocumentId = linkDocumentId_example; # String | 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.
eval {
my $result = $api_instance->getShadedViews1(did => $did, wvm => $wvm, wvmid => $wvmid, eid => $eid, viewMatrix => $viewMatrix, outputHeight => $outputHeight, outputWidth => $outputWidth, pixelSize => $pixelSize, edges => $edges, showAllParts => $showAllParts, includeSurfaces => $includeSurfaces, useAntiAliasing => $useAntiAliasing, configuration => $configuration, linkDocumentId => $linkDocumentId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->getShadedViews1: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure OAuth2 access token for authorization: OAuth2
openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class
api_instance = openapi_client.DefaultApi()
did = did_example # String | Document ID. (default to null)
wvm = wvm_example # String | One of w or v or m corresponding to whether a workspace or version or microversion was entered. (default to null)
wvmid = wvmid_example # String | Workspace (w), Version (v) or Microversion (m) ID. (default to null)
eid = eid_example # String | Element ID. (default to null)
viewMatrix = viewMatrix_example # String | 12-number view matrix (comma-separated), or one of the following named views:
top, bottom, front, back, left, right
The 12 entries in the view matrix form three rows and four columns, which is a linear transformation applied to the model itself.
The matrix's first three columns maps the coordinate axes of the model to the coordinate axes of the view, and the fourth column translates the origin (in meters).
The view coordinates have x pointing right, y pointing up, and z pointing towards the viewer, while a front view of the model has x pointing right, y pointing away from the viewer, and z pointing up.
For example, the identity matrix viewMatrix=1,0,0,0,0,1,0,0,0,0,1,0 corresponds to the top view, and viewMatrix=0.612,0.612,0,0,-0.354,0.354,0.707,0,0.707,-0.707,0.707,0 corresponds (approximately) to the isometric view.
The first three columns of the view matrix should be orthonormal and have a positive determinant. If this is not the case, view behavior may be undefined. (optional) (default to front)
outputHeight = 56 # Integer | Output image height (in pixels) (optional) (default to 500)
outputWidth = 56 # Integer | Output image width (in pixels) (optional) (default to 500)
pixelSize = 1.2 # Double | Height and width represented by each pixel (in meters). If the value is 0, the display will be sized to fit the output image dimensions. (optional) (default to 0.003)
edges = edges_example # String | The treatment to be applied to edges in the display. Options are show: show visible edges, hide: hide visible edges. (optional) (default to show)
showAllParts = true # Boolean | Whether or not all parts should be shown in the element,
regardless of user setting. If false, the visibility setting made by the user will be reflected in the
image. If true, all parts will be shown. (optional) (default to false)
includeSurfaces = true # Boolean | Whether or not surfaces should be shown in the element.
It is applicable only when showAllParts is true. If false, surfaces will be excluded.
If true, all surfaces will be shown. (optional) (default to false)
useAntiAliasing = true # Boolean | If true, an anti-aliasing factor will be used to smooth
model boundaries in the final image result. If false, the image will be rasterized at the given
resolution. Setting to true can have negative performance implications with respect to rendering time
and memory usage. If a high-resolution image is requested and anti-aliasing is turned on, the server
may not be able to fulfill the request. (optional) (default to false)
configuration = configuration_example # String | Configuration string. (optional) (default to null)
linkDocumentId = linkDocumentId_example # String | 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. (optional) (default to null)
try:
# Get Shaded Views
api_response = api_instance.get_shaded_views1(did, wvm, wvmid, eid, viewMatrix=viewMatrix, outputHeight=outputHeight, outputWidth=outputWidth, pixelSize=pixelSize, edges=edges, showAllParts=showAllParts, includeSurfaces=includeSurfaces, useAntiAliasing=useAntiAliasing, configuration=configuration, linkDocumentId=linkDocumentId)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->getShadedViews1: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let did = did_example; // String
let wvm = wvm_example; // String
let wvmid = wvmid_example; // String
let eid = eid_example; // String
let viewMatrix = viewMatrix_example; // String
let outputHeight = 56; // Integer
let outputWidth = 56; // Integer
let pixelSize = 1.2; // Double
let edges = edges_example; // String
let showAllParts = true; // Boolean
let includeSurfaces = true; // Boolean
let useAntiAliasing = true; // Boolean
let configuration = configuration_example; // String
let linkDocumentId = linkDocumentId_example; // String
let mut context = DefaultApi::Context::default();
let result = client.getShadedViews1(did, wvm, wvmid, eid, viewMatrix, outputHeight, outputWidth, pixelSize, edges, showAllParts, includeSurfaces, useAntiAliasing, configuration, linkDocumentId, &context).wait();
println!("{:?}", result);
}