Skip to content

Instantly share code, notes, and snippets.

@christopherhelf
christopherhelf / WKWebViewPlus.swift
Last active November 19, 2021 18:00
WKWebview Screenshots & Loading/Progress Notification
//
// WKWebViewPlus.swift
//
// Created by Christopher Helf on 19.09.15.
// Copyright © 2015 Christopher Helf. All rights reserved.
//
import Foundation
import UIKit
import WebKit
@christopherhelf
christopherhelf / conversion
Created March 10, 2015 16:20
MeshConversion Openmesh
bool IsotropicRemesher::getMesh(TriMesh& mesh) {
OpenMesh::VPropHandleT<int> id;
mesh.add_property(id);
std::vector<TriMesh::VertexHandle> vHandles;
for(int i=0; i<nPointsIn; i++) {
PointM pt = getPoint(this->pointsIn, i);
/*PointM is a simple Point struct, pointsIn contains my points*/