1
0
mirror of git://projects.qi-hardware.com/ben-scans.git synced 2025-04-21 12:27:27 +03:00

Instead of performing the tranformations stepwise for each point, pre-calculate

them once.

- solidify/matrix.h, solidify/matrix.c: 2D matrix operations
- solidify/Makefile (OBJS): added matrix.o
- solidify/face.h (struct matrix): moved to solidify/matrix.h
- solidify/overlap.c (point, merge_matrix, draw_map): precalculate a single
  vA+b transformation instead of stepwise transforming the vector inside
  the loop
- solidify/overlap.c (do_shift): now that the math is right (or at least
  better), reverse the shift
This commit is contained in:
Werner Almesberger
2010-09-24 16:42:36 -03:00
parent 37e840fa77
commit 898970b3dd
5 changed files with 219 additions and 30 deletions

View File

@@ -12,8 +12,8 @@
SHELL = /bin/bash
OBJS = array.o face.o histo.o level.o overlap.o solid.o solidify.o style.o \
util.o
OBJS = array.o face.o histo.o level.o matrix.o overlap.o solid.o solidify.o \
style.o util.o
CFLAGS_WARN = -Wall -Wshadow -Wmissing-prototypes \
-Wmissing-declarations -Wno-format-zero-length