自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(29)
  • 资源 (31)
  • 收藏
  • 关注

原创 how to move pivot to origin

3 Simple steps: 1) click  icon to open tool setting, then unfold the Move Settings, click Edit Pivot, Reset, Edit Pivot. 2) snap the object to the world origin using grid snap 3) Freeze tr

2016-06-30 19:31:07 618

转载 Change Language in OS but keep Maya UI in English

Right-click on the My Computer icon on the Windows Desktop, and select Properties from the drop-down list that appears.Note: On Windows 7, right-click your computer name and select Properties, the

2016-06-30 19:21:51 1170

原创 generating selection dmat for igllib

mylist = [0] * 1800f_in = open("C:/log/2016_06_29/auto/face.txt") f_out = open("C:/log/2016_06_29/auto/face.o.txt", "w") lines = f_in.readlines() for line in lines: numbers =

2016-06-30 01:56:08 449

原创 Increase the ordinal number at the beginning of each line

import ref_in = open("C:/log/2016_06_29/male1.1.tgf") f_out = open("C:/log/2016_06_29/male1.0.tgf", "w") lines = f_in.readlines()for line in lines: num = int(re.match(r"\d+", line)

2016-06-29 21:37:18 491

转载 search vs. match

7.2.5.3. search() vs. match()Python offers two different primitive operations based on regular expressions: re.match() checks for a match only at the beginning of the string, while re.search() c

2016-06-29 21:13:45 458

原创 how to create igllib project independently(effective on 28/6/2016)

Here, we use 401 as our example.1. build a new console project, here we name it as "testigl", then add new file named main.cpp and copy 401 source file into this file.2. add include directories:

2016-06-28 19:36:51 636

原创 401 biharmonic deformation

let us look at the definition of biharmonic deformation first:Then take a look at the definition of biharmonic deformation fieldsThe difference between them is Biharmonic surface works

2016-06-28 00:23:02 2646 1

原创 some formulas for bloging

⎡⎣12(A+A′)AeqA′eqBeq⎤⎦[Xλ]=[−BBeq]\begin{bmatrix}\frac{1}{2}(A+A') &A_{eq}'\\A_{eq} &Beq\end{bmatrix}\begin{bmatrix}X \\\lambda \end{bmatrix}=\begin{bmatrix}-B \\Beq\end{bmatrix}

2016-06-27 22:12:47 360

转载 igl::cat

在dim维上,对A和B进行连接。如果dim为1,则将A,B按垂直方向堆叠,如果dim为2,则将A,B按水平方向堆叠。template IGL_INLINE void igl::cat( const int dim, const Eigen::MatrixBase & A, const Eigen::MatrixBase & B, MatC & C){ asse

2016-06-23 19:45:10 647

转载 slice

将矩阵X的 一些行和一些列提取出来形成矩阵Y,其他行索引和列索引分别存于R,Ctemplate < typename DerivedX, typename DerivedR, typename DerivedC, typename DerivedY>IGL_INLINE void igl::slice( const Eigen::PlainObjectBase

2016-06-23 19:29:35 810

原创 stable_partition

quote from : http://en.cppreference.com/w/cpp/algorithm/stable_partitionstd::stable_partition C++ Algorithm library Defined in header   

2016-06-23 17:24:49 667

原创 Laplacian interpolation implementation in matlab

Some time ago, I quoted a passage from a website which is able to give a general idea about the Laplacian interpolation. The address is http://blog.csdn.net/seamanj/article/details/50701112Here, I wan

2016-06-23 00:56:54 776

转载 biharm_solve_with_factor

function [xV] = biharm_solve_with_factor( ... L, U, P, Q, R, S, M, F, xV, Omega, N0, N1, bndtype, reduction,BZ1,V) % Solves Ax = b, where A is factored as PR\AQ = LU and x is the new % coordin

2016-06-22 01:44:22 432

转载 biharm_factor_system

function [L,U,P,Q,R, S, M] = biharm_factor_system( ... V, ... F, ... bndtype, ... masstype, ... reduction, ... Omega, ... N0, ... N1) % [L,U,P,Q,R, S, M] = biharm_factor_system( ...

2016-06-22 00:36:33 393

转载 display_domain

function display_domain(F,V,Omega,N0,N1,N2,outside_region_of_interest,phong)%% See corresponding paper: "Mixed finite elements for variational surface% modeling" by Alec Jacobson, Elif Tosun, Olga

2016-06-21 23:22:13 337

转载 layers_from_handle

function [Omega,N0,N1,N2,outside_region_of_interest ] = ... layers_from_handle( ... vertex_count, ... F, ... H) % Given a Face index list and list of vertex indices in a handle (can be

2016-06-21 23:07:36 356

转载 tsurf

function tsurf(F,V,vertex_indices,face_indices) % trisurf wrapper % F: list of faces #F x 3 % V: vertex positiosn #V x 3 or #V x 2 % vertex_indices: show vertex indices on plot %

2016-06-21 21:47:36 458

转载 create_regular_grid

function [F, UV, res, edge_norms] = ... create_regular_grid(xRes, yRes, xWrap, yWrap, near, far)% Creates list of triangle vertex indices for a rectangular domain,% optionally wrapping around in X

2016-06-21 21:32:13 943

原创 Mixed Finite Elements for Variational Surface Modeling

paper source { formula 5 LB=12<v,v>Ω0+<λ,Δu−v>Ω0=12<v,v>Ω0−<λ,v>Ω0+<λ,Δu>Ω0L_B=\frac{1}{2}<v,v>_{\Omega_0}+<\lambda,\Delta u-v>_{\Omega_0}=\frac{1}{2}<v,v>_{\Omega_0}-<\lambda,v>_{\Omega_0}+<\lambda,

2016-06-20 23:20:21 636

原创 add line order to each line and remove the last match of each line

import ref_in = open("C:/work_files/libigl/tutorial/shared/male1.tgf") f_out = open("C:/work_files/libigl/tutorial/shared/male1.o.tgf", "w") for row in range(1,17914): line = f_in.readline

2016-06-20 18:03:09 445

原创 find out the last match position

import rere.search("pattern(?!.*pattern)", "target_text")orimport rere.findall("pattern", "target_text")[-1]import reString = "This is an example sentence, it is for demonstration only"

2016-06-20 18:00:28 322

原创 exchange two numbers in each line

f_in = open("C:/work_files/libigl/tutorial/shared/exchange.txt") f_out = open("C:/work_files/libigl/tutorial/shared/exchange.o.txt", "w") for row in range(0,29620): line = f_in.readline()

2016-06-20 17:24:49 359

原创 append a string to each line

infile_name = "C:/work_files/libigl/tutorial/shared/male1.mesh"outfile_name = "C:/work_files/libigl/tutorial/shared/male1.mesh.o"string_to_add = " 0"with open(infile_name, 'r') as f: file_line

2016-06-20 17:14:08 412

原创 how to produce .mesh .tgf file for 403_BoundedBiharmonicWeights_bin

1. First, assume you have an .obj file, you can download or make one from maya2. then convert it into .off file in meshlab.3. after that using Tetgen to generate tetrahetras by typing: tetgen -pqY

2016-06-18 03:43:37 1023 2

转载 libigl file formats

libigl file formats.bf ASCII files for representing skeletal bone "forests".dmat uncompressed ASCII/binary files for dense matrices.ele Element (triangle or tet) list. This format comes in similar

2016-06-17 01:31:05 1018

原创 solve mass matrix in matlab

note: this passage serves for the analysis of Alec Jacobson’s thesis1. what’s mass matrixAccording to (2.50), mass matrix is given by: Mij=∫ΩϕiϕjdAM_{ij}=\int_\Omega\phi_i\phi_jdA2. matlab code analys

2016-06-06 23:32:31 1721

原创 ex3_3 Equality constrains and unrestricted variables

matlab source code:% Ex3_3.m% Example 3.3% Optimization Using MATLAB by P.Venkataraman%% Using drawLine.m %drawLine(0,6,1,1,5,'l');drawLine(0,6,2,1,4,'e');drawLine(0,6,1,1,1,'g');drawLine(

2016-06-03 21:33:54 2690

原创 Bounded Biharmonic Weigths for Real-Time Deformation

3.1 Formulation { First of all, let me explain the physical meaning of the objective function. The function tries to make the weight of each anchor point on each point have least changed. The ideal

2016-06-03 03:31:23 1618 2

转载 std::slice

std::sliceclass slice;Valarray slice selectorThis class represents a valarray slice selector. It does not contain nor refers to any element - it only describes a selection of elements to

2016-06-02 19:17:25 864

average diffusion distance

average diffusion distance implemented in matlab

2016-08-13

Farthest Sampling on 3D meshes with mesh kept based on diffusion distance

Farthest Sampling on 3D meshes with mesh kept based on diffusion distance implemented in matlab

2016-08-13

Fast Marching on 3D Meshes with diffusion distance

Fast Marching on 3D Meshes with diffusion distance implemented in matlab

2016-08-13

PCA implementation

PCA implementation in matlab

2016-08-06

Farthest Sampling on 3D meshes with mesh kept

Farthest Sampling on 3D meshes with mesh kept

2016-08-03

Fast Marching on 3D Meshes

implement fast marching on 3d meshes in matlab

2016-07-31

farthest point sampling

implement farthest point sampling in matlab

2016-07-25

2D Fast Marching Computations

implement 2d fast marching computations in matalb

2016-07-25

princal component analysis implemented in matlab

princal component analysis implemented in matlab

2016-07-09

as-conformal-as-possible surface registration

implement paper "as-conformal-as-possible surface registraion" in matlab

2016-07-07

position based dynamics

position based dynamics implemented in matlab

2016-07-05

mixed finite elements

implement mixed finite elements in matlab

2016-06-23

laplacian interpolation

implement laplacian interpolation in matlab

2016-06-23

libmysqlclient.so.16

solve QSqlDatabase: QMYSQL driver not loaded problem

2016-05-17

GLM显示带纹理的OBJ

GLM显示带纹理的OBJ

2016-02-04

2d perlin noise ocean

采用二维柏林噪声模拟的海洋 .zip

2016-01-09

softmax regression

softmax regression 源代码 源码用的armadillo数学库,如何安装armadillo数学库,请看我的博客 http://blog.csdn.net/seamanj/article/details/49892715

2015-11-20

shadow Mapping 阴影投影

shadow Mapping 阴影投影 主要介绍阴影投影实现的原理 和 实现方法

2014-05-12

3D_Shader_DisplacementMapping_Sphere.rar

移位贴图(Displacement Mapping)的实现

2013-09-05

3D_Shader_ProjectivetTexturing.rar

投影贴图(projective texturing)的实现

2013-09-01

3D_Shader_CubeEnvMapping.rar

立方体环境映射(cubic environment mapping)的实现,其中包括了反射,折射,菲涅尔效应,色散等知识.

2013-08-29

3D_Shader_NormalMapping.rar

3D 法线贴图(normal mapping)的实现

2013-08-15

3D_Shader_SphereEnvMapping_by_seamanj

3D球形环境映射(3D Sphere environment mapping)的实现

2013-08-15

3D_Shader_SphereEnvMapping.rar

球形环境映射(sphere environment mappint)原理的实现

2013-07-23

USB监控器.rar

USB监控器_去网页打开 使用到的工具,OD和W32DASM

2013-06-14

texture&blending

DX 混合 纹理操作 包括多重纹理的操作,以及BACKBUFFER的读取

2013-05-03

3D_Math_Quaternion

四元组的应用 包含: 1.从"按定轴旋转某角度"建立四元组 2.四元组的球形插值插值 3.四元组与3x3旋转矩阵的相互转换

2013-03-08

3D_Shader_Expansion&Shrinkage;_by_Seamanj

3D_Shader_Expansion&Shrinkage;_by_Seamanj

2013-03-08

3D_Math_Solve_Matrix_Inverse_by_Seamanj.rar

矩阵各种求逆的方法 包括: 1.用矩阵行列式求逆 2.用高斯-约当消元法求逆 3.用LU分解求逆

2013-03-06

3D_Math_Solve_Matrix_Inverse.rar

矩阵各种求逆的方法 包括: 1.用矩阵行列式求逆 2.用高斯-约当消元法求逆 3.用LU分解求逆

2013-03-06

3D_Math_Quaternion_by_Seamanj.rar

四元组应用的实现 包括了 1.从"按指定轴旋转多少度"建立四元组 2.四元组的球形插值 3.四元组与3x3旋转矩阵的相互转换

2013-03-06

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除