Skip to content

Instantly share code, notes, and snippets.

View ThanosRestas's full-sized avatar
🎯
Focusing

ThanosRestas ThanosRestas

🎯
Focusing
View GitHub Profile
package com.satya.arcoresample
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.location.Location
import android.os.Build
import android.os.Bundle
@ThanosRestas
ThanosRestas / GetStreamingAssetsPath.cs
Created October 13, 2021 13:46 — forked from leducanhh/GetStreamingAssetsPath.cs
[Unity] Get StreamingAssets file path with Android and iOS.
void GetStreamingAssetsPath(string fileName)
{
#if UNITY_EDITOR
dbPath = string.Format(@"Assets/StreamingAssets/{0}", fileName);
#else
// check if file exists in Application.persistentDataPath
var filepath = string.Format("{0}/{1}", Application.persistentDataPath, fileName);
if (!File.Exists(filepath))
@ThanosRestas
ThanosRestas / UnityObjectLoader
Created October 6, 2021 07:14 — forked from supachailllpay/ UnityObjectLoader
Load .obj and .mtl in Unity at runtime
Load .obj and .mtl in Unity at runtime
@ThanosRestas
ThanosRestas / TexturedMeshSteps.md
Created September 21, 2021 13:53 — forked from shubhamwagh/TexturedMeshSteps.md
Steps to create textured mesh from point cloud using Meshlab

Steps to create Textured Mesh from Point Cloud using Meshlab

Get your PointCloud into MeshLab

  • Import the pointcloud file in ".ply" file format in Meshlab. Before importing make sure you do some pre-processing / cleaning on point cloud so as to ease the process of meshing.

Point Cloud Simplification and Normals Computation

  • Next we need to reduce the number of point samples for smooth meshing.
    • So go to Filters -> Point Set -> Point Cloud Simplification. Enter Number of samples circa 5% of original number of points. Make sure Best Sample Heuristic is checked.
  • After point cloud simplification, make sure to select Simplified point cloud in the Show Layer Dialog on the right hand side. If not visible, it can be opened by navigating to View -> Show Layer Dialog. Now we need to compute normals for point set.
  • So go to Filters -> Point Set -> Compute normals for point sets . Enter Neighbour num between 10 - 100. Initially try with 10 and
@ThanosRestas
ThanosRestas / OOPinCsharpDemo.cs
Last active September 30, 2022 09:39
Abstract,Interfaces,Virtual usage in C# Demo
using System;
public interface IBasicAbilities
{
void MotherLanguage ();
}
public abstract class Entity
{
protected string name;