Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

109 total results found

Python Program Reference

Developer Manual Serverless Programs - Python

The following table lists the functions and properties available in the Python programmable interface: input(id, label) Requests a numeric input from the user. The value of the “id” parameter uniquely identifies the input, the programmer must...

Program Examples

Developer Manual Serverless Programs - Python

Voxel Generator for a Torus object This program generates a volumetric Torus object: import voxelfarm as vf import math def length2d(p):     return math.sqrt(p[0] * p[0] + p[1] * p[1]) def torus(p, r1, r2):     d = length2d((p[0], p[2]))     q ...

Submitting .Net Lambdas

Developer Manual Serverless .Net Lambdas

The platform allows users to run Spatial Lambdas that are compiled as standard .Net assemblies. Currently, .Net assemblies are supported only for REPORT programs. GENERATOR and VIEW programs must still be created using Python. Spatial operations using .Net a...

Writing Report Lambdas

Developer Manual Serverless .Net Lambdas

Reports are processes that the platform runs over spatial datasets in a massively parallel fashion. The code for these processes can be supplied entirely by users, and can be provided as a Python program or a .Net assembly. This topic covers how to implement a...

IVoxelFarmReportLambda

Developer Manual Serverless .Net Lambdas

The IVoxelFarmReportLambda interface provides a way to supply custom execution code for a report process in the platform. The interface is declared as follows: namespace VoxelFarm.SpatialLambda {     public interface IVoxelFarmReportLambda     {         ...

IVoxelFarmReportLambdaHost

Developer Manual Serverless .Net Lambdas

The IVoxelFarmReportLambdaHost interface provides access to platform features. Methods: double Input(string id, string label, double defaultValue) Inputs a floating point value. The parameter provided as id should be unique for the set of inpu...

IVoxelFarmReportDoneLambdaHost

Developer Manual Serverless .Net Lambdas

The IVoxelFarmReportLambdaHost interface provides access to platform features during the final stage of a report's execution. Methods: string CreateTempFolder(string name) Creates a temporary folder and returns the path to it. bool At...

Report Lambda Examples

Developer Manual Serverless .Net Lambdas

using System; using System.IO; using System.IO.Compression; using VoxelFarm.SpatialLambda; namespace TestLambdas {     // This Report Lambda uses a Sum to compute the volume of an object     public class EntityVolume : VoxelFarm.SpatialLambda.IVoxel...

Introduction

Developer Manual Embed Viewer

The Embed Viewer is a React component that encapsulates a viewer to show 3D spatial data. The Embed Viewer developer manual includes the following sections Properties :  Definition of the Embed Viewer React Component' Props (Properties) and each prop values...

Properties

Developer Manual Embed Viewer

Name JS Data Type Description projectId string The ID of the project streamingUrl string The URL of the streaming server restUrl string The URL of rest server viewId strin...

Functions

Developer Manual Embed Viewer

Name Parameters Description fetchProgramInputs - programId: string - callback: function => callback returning the inputs Return the current PYTHON programs inputs refreshView - selectedViewContainerMeta: View...

Introduction

Developer Manual C# Client Library

The Voxel Farm solution includes a thin C# client library. This client allows applications running on .NET to connect and access data hosted by Voxel Farm servers. The C# Client Library allows the application to create a “view” of content in the Voxel Farm pl...

Threading Model

Developer Manual C# Client Library

The C# Client is designed to operate in high-frequency, real-time systems like VR rendering. It can only be used asynchronously. The C# client uses worker threads to perform operations like downloading and decompressing data in the background. Before anything...

Coordinate Systems

Developer Manual C# Client Library

When working with Voxel Farm projects, it is possible to encounter up to three different coordinate systems. These systems are: Project’s native coordinate system. These are the real-world coordinates, typically involving an Earth ellipsoid model (WSG84, et...

Spatial Indexing

Developer Manual C# Client Library

A grid is assumed to divide the world into equally-sized 3D cells. Each cell measures VoxelFarmConstant.CELL_SIZE units along each direction. From a given 3D point in Voxel Farm coordinates, it is possible to determine the coordinates of the cell containing t...

Creating a View

Developer Manual C# Client Library

In order to access spatial information from the Voxel Farm, the application will have to create at least one instance of the “VoxelFarmView” class. MyView = new VoxelFarm.VoxelFarmView(); The view object will connect to the server to request data...

View Configuration

Developer Manual C# Client Library

Once the project loads, the application must determine how to configure the client view. A single project may contain multiple datasets. Configuring the view in the client involves selecting which datasets should be used and how will they be combined and prese...

Using Views for Rendering

Developer Manual C# Client Library

The C# Client Library allows to integrate the Voxel Farm platform into existing rendering environments. The VoxelFarmView object in the library has the concept of a “focus” scope. Typically, a 3D application will have a camera, and the camera is expected to m...

Using Views for Data Retrieval

Developer Manual C# Client Library

The C# Client library allows a simpler interaction model for applications that just want to read spatial data from Voxel Farm servers. This is the case of a client-side report for instance, where multiple datasets can be requested and inspected by a client app...

Example - Mesh Export

Developer Manual C# Client Library

The following C# program connects to a Voxel Farm server and exports the terrain surface within a 3D region as a mesh: using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net; using System.Text; using Syste...