Remove unused function med_copy_segment
This commit is contained in:
parent
765f34eb0a
commit
be777c78a3
|
@ -278,10 +278,6 @@ extern int create_new_mine(void);
|
||||||
// extern void med_create_segment(segment *sp, vms_vector *scale);
|
// extern void med_create_segment(segment *sp, vms_vector *scale);
|
||||||
extern void old_med_attach_segment(struct segment *sp,int main_side,int branch_side,fix cx, fix cy, fix cz, fix length, fix width, fix height, vms_matrix *mp);
|
extern void old_med_attach_segment(struct segment *sp,int main_side,int branch_side,fix cx, fix cy, fix cz, fix length, fix width, fix height, vms_matrix *mp);
|
||||||
|
|
||||||
// Copy a segment from *ssp to *dsp. Do not simply copy the struct. Use *dsp's vertices, copying in
|
|
||||||
// just the values, not the indices.
|
|
||||||
extern void med_copy_segment(struct segment *dsp,struct segment *ssp);
|
|
||||||
|
|
||||||
// Create a segment given center, dimensions, rotation matrix.
|
// Create a segment given center, dimensions, rotation matrix.
|
||||||
// Note that the created segment will always have planar sides and rectangular cross sections.
|
// Note that the created segment will always have planar sides and rectangular cross sections.
|
||||||
// It will be created with walls on all sides, ie not connected to anything.
|
// It will be created with walls on all sides, ie not connected to anything.
|
||||||
|
|
|
@ -1637,30 +1637,6 @@ void init_all_vertices(void)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------------------------------------------------------------------------------------------------
|
|
||||||
// Copy a segment from *ssp to *dsp. Do not simply copy the struct. Use *dsp's vertices, copying in
|
|
||||||
// just the values, not the indices.
|
|
||||||
void med_copy_segment(segment *dsp,segment *ssp)
|
|
||||||
{
|
|
||||||
int v;
|
|
||||||
int verts_copy[MAX_VERTICES_PER_SEGMENT];
|
|
||||||
|
|
||||||
// First make a copy of the vertex list.
|
|
||||||
for (v=0; v<MAX_VERTICES_PER_SEGMENT; v++)
|
|
||||||
verts_copy[v] = dsp->verts[v];
|
|
||||||
|
|
||||||
// Now copy the whole struct.
|
|
||||||
*dsp = *ssp;
|
|
||||||
|
|
||||||
// Now restore the vertex indices.
|
|
||||||
for (v=0; v<MAX_VERTICES_PER_SEGMENT; v++)
|
|
||||||
dsp->verts[v] = verts_copy[v];
|
|
||||||
|
|
||||||
// Now destructively modify the vertex values for all vertex indices.
|
|
||||||
for (v=0; v<MAX_VERTICES_PER_SEGMENT; v++)
|
|
||||||
Vertices[dsp->verts[v]] = Vertices[ssp->verts[v]];
|
|
||||||
}
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// Create coordinate axes in orientation of specified segment, stores vertices at *vp.
|
// Create coordinate axes in orientation of specified segment, stores vertices at *vp.
|
||||||
void create_coordinate_axes_from_segment(segment *sp,int *vertnums)
|
void create_coordinate_axes_from_segment(segment *sp,int *vertnums)
|
||||||
|
|
Loading…
Reference in a new issue