Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully automate dev setup with Gitpod #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
tasks:
- init: 'echo "TODO: Replace with init/build command"'
command: index.html
6 changes: 6 additions & 0 deletions .theia/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": []
}
3 changes: 3 additions & 0 deletions .theia/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.autoSave": "off"
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# viewzavr-cinema
Viewzavr-based CinemaScience 3d viewer and it's components.
A successor of https://github.com/pavelvasev/38parrots
Expand All @@ -10,6 +11,10 @@ A successor of https://github.com/pavelvasev/38parrots

https://viewlang.ru/viewzavr-apps/vr-cinema/

# edit online

[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/viewzavr/vr-cinema)

# copyright

The presented approach for 3d scene description is developed in Computer visualization lab
Expand Down
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { default as setup_cinema, create_cinema } from "./src/cinema-viewzavr.js";

setup_cinema(vz);

var ci = create_cinema( vz,{} );
ci.setParam("file","./examples/_tutorial/0-points-fly.cdb/data.csv");

Expand Down
8 changes: 4 additions & 4 deletions src/cinema.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ export default function cinema() {
return [nearest_i,nearest_dist,nearest_i2,nearest_dist2];
}

function distf( request, dataobj, i ) {
function distf( request, dataframe, i ) {
var diff = 0;
Object.keys(request).forEach( function(name) {
var reqval = request[name];
var datval = (obj.data[ name ] || [])[i];
var datval = (dataframe[ name ] || [])[i];
if (datval === undefined || reqval === undefined) {

}
Expand All @@ -91,11 +91,11 @@ export default function cinema() {

//////////////////////
// is request is less than dataobj value?
function lessf( request, dataobj, i ) {
function lessf( request, dataframe, i ) {
var lesscount = 0;
Object.keys(request).forEach( function(name) {
var reqval = request[name];
var datval = (obj.data[ name ] || [])[i];
var datval = (dataframe[ name ] || [])[i];
if (datval === undefined || reqval === undefined) {
}
else
Expand Down