AlgebraMaster

Modern C++ 创造非凡 . 改变世界 一起铲除毒瘤KPI

导航

上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页

2017年10月31日 #

图形学算法:

摘要: 1,cubic-bezier vector start = point(0,"P",0); vector end = point(0,"P",@numpt-1); vector range_01 = fit(@ptnum,0,@numpt-1,0,1); float ix = range_01.x; 阅读全文

posted @ 2017-10-31 19:32 gearslogy 阅读(895) 评论(0) 推荐(0)

2017年10月26日 #

微分学习

摘要: 1,曲线y = sqrt(x) 和 点(3/2,0) 最近距离为多少 设最近点为(x,y) 则D = d^2 = (x-3/2)^2 + (y-0)^2 所以D = (x-3/2)^2 + [sqrt(x)-0]^2 因为y = sqrt(x) 所以D = (x-3/2)^2 + x = x^2 - 阅读全文

posted @ 2017-10-26 18:03 gearslogy 阅读(944) 评论(0) 推荐(0)

2017年10月18日 #

Delaunay triangulation

摘要: 1,先花个圆: detail模式执行。 #define XY 0x00 #define XZ 0x01 #define YZ 0x02 #define pi 3.1415926 #define close 0x01 #define unclose 0x00 vector center = {1,0, 阅读全文

posted @ 2017-10-18 14:52 gearslogy 阅读(441) 评论(0) 推荐(0)

2017年9月30日 #

Rasterization 学习笔记

摘要: Barycentric interpolation <1>2d/3d Check point in triangle test float areas(vector p1;vector p2;vector p3) { return length(cross(p1-p2,p3-p2)) * 0.5f; 阅读全文

posted @ 2017-09-30 19:41 gearslogy 阅读(461) 评论(0) 推荐(0)

2017年9月27日 #

系统/英语专栏

摘要: win7共享无线网卡为热点。 netsh wlan set hostednetwork mode=allow netsh wlan set hostednetwork ssid=Hostpot key=12345678 netsh wlan start hostednetwork 手机就可以连接了 阅读全文

posted @ 2017-09-27 12:06 gearslogy 阅读(397) 评论(0) 推荐(0)

2017年8月29日 #

Houdini OpenCL

摘要: SOP: simple moveKernel #include "interpolate.h" float lerpConstant( constant float * in, int size, float pos); float3 getFloat3(global float * data, i 阅读全文

posted @ 2017-08-29 13:05 gearslogy 阅读(688) 评论(0) 推荐(0)

2017年8月26日 #

CMake的一些正确姿势

摘要: 0,设置Debug / Release: CMakeLists.txt: SET(CMAKE_BUILD_TYPE "Debug”) or SET(CMAKE_BUILD_TYPE "Release") 用参数设置 mkdir Release cd Release cmake -DCMAKE_BUI 阅读全文

posted @ 2017-08-26 14:04 gearslogy 阅读(573) 评论(0) 推荐(0)

2017年8月19日 #

Simple scatter method in 2d picture(Qt)

摘要: Result: grayMap: MathTools: // // Created by Administrator on 2017/8/17. // #ifndef QTSCATTER_MATHTOOLS_H #define QTSCATTER_MATHTOOLS_H #include <stri 阅读全文

posted @ 2017-08-19 10:41 gearslogy 阅读(367) 评论(0) 推荐(0)

2017年7月3日 #

GPU Tips

摘要: <1> Basic #include <stdio.h> #include <cuda_runtime.h> #include <device_launch_parameters.h> #define NUM 15 __global__ void square(float *dout,float * 阅读全文

posted @ 2017-07-03 20:55 gearslogy 阅读(280) 评论(0) 推荐(0)

2017年5月24日 #

Maya API Test

摘要: import maya.OpenMaya as OpenMaya import maya.OpenMayaMPx as OpenMayaMPx sl = OpenMaya.MSelectionList() OpenMaya.MGlobal.getActiveSelectionList(sl) ite 阅读全文

posted @ 2017-05-24 18:04 gearslogy 阅读(1110) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页